mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix incompatibility of covington and beamer.
Candidate for stable.
This commit is contained in:
parent
f70dd65bb2
commit
ee14363e0b
@ -930,7 +930,25 @@ Glossen (und Beispiele) in Beamer-Präsentationen
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Leider arbeiten das Paket
|
||||
Wenn Sie das Linguistik-Modul in einer Beamer-Präsentation verwenden wollen,
|
||||
beachten Sie bitte folgendes:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
Für Glossen müssen Sie in Beamer immer einen
|
||||
\begin_inset Quotes gld
|
||||
\end_inset
|
||||
|
||||
fragilen
|
||||
\begin_inset Quotes grd
|
||||
\end_inset
|
||||
|
||||
Rahmen verwenden.
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
Ältere Versionen des Pakets
|
||||
\emph on
|
||||
covington
|
||||
\emph default
|
||||
@ -938,7 +956,7 @@ covington
|
||||
\emph on
|
||||
Beamer
|
||||
\emph default
|
||||
-Klasse von Haus aus nicht gut zusammen, da beide die Befehle
|
||||
-Klasse arbeiten von Haus aus nicht gut zusammen, da beide die Befehle
|
||||
\family typewriter
|
||||
|
||||
\backslash
|
||||
@ -950,8 +968,9 @@ example
|
||||
\backslash
|
||||
examples
|
||||
\family default
|
||||
zu definieren versuchen, was eine \SpecialChar LaTeX
|
||||
-Fehlermeldung erzeugt.
|
||||
zu definieren versuchen, was in diesen älteren Versionen eine \SpecialChar LaTeX
|
||||
-Fehlermeldung
|
||||
erzeugt, sobald sie Glossen oder Beispiele einfügen.
|
||||
Sie können das Problem beheben, indem Sie in
|
||||
\family sans
|
||||
Dokument\SpecialChar menuseparator
|
||||
@ -961,6 +980,7 @@ Lokales Format
|
||||
folgenden Code kopieren:
|
||||
\end_layout
|
||||
|
||||
\begin_deeper
|
||||
\begin_layout Quote
|
||||
\begin_inset listings
|
||||
lstparams "basicstyle={\footnotesize\ttfamily},tabsize=4"
|
||||
@ -1062,18 +1082,14 @@ OK
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Beachten Sie auch, dass Sie für Glossen in Beamer einen
|
||||
\begin_inset Quotes gld
|
||||
\end_inset
|
||||
|
||||
fragilen
|
||||
\begin_inset Quotes grd
|
||||
\end_inset
|
||||
|
||||
Rahmen verwenden müssen.
|
||||
|
||||
Ab
|
||||
\emph on
|
||||
covington
|
||||
\emph default
|
||||
1.1 besteht dieses Problem nicht mehr.
|
||||
\end_layout
|
||||
|
||||
\end_deeper
|
||||
\begin_layout Section
|
||||
Tableaux für Optimalitätstheorie
|
||||
\end_layout
|
||||
|
@ -933,16 +933,48 @@ Using Glosses (and Examples) in a Beamer Presentation
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
The
|
||||
\emph on
|
||||
covington
|
||||
\emph default
|
||||
package and the
|
||||
If you use the linguistics module with
|
||||
\emph on
|
||||
beamer
|
||||
\emph default
|
||||
class do not work together out of the box, since they both try to define
|
||||
the commands
|
||||
presentations, there are some caveats:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
If you want to use glosses in
|
||||
\emph on
|
||||
beamer
|
||||
\emph default
|
||||
, you need to put it in a
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
fragile
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
frame.
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
Older versions of the
|
||||
\emph on
|
||||
covington
|
||||
\emph default
|
||||
package (before version 1.1) do not play with the
|
||||
\emph on
|
||||
beamer
|
||||
\emph default
|
||||
class out of the box, since both
|
||||
\emph on
|
||||
beamer
|
||||
\emph default
|
||||
and
|
||||
\emph on
|
||||
covington
|
||||
\emph default
|
||||
try to define the commands
|
||||
\family typewriter
|
||||
|
||||
\backslash
|
||||
@ -954,9 +986,14 @@ example
|
||||
\backslash
|
||||
examples
|
||||
\family default
|
||||
, which results in a \SpecialChar LaTeX
|
||||
.
|
||||
In these older versions of
|
||||
\emph on
|
||||
covington
|
||||
\emph default
|
||||
, this results in a \SpecialChar LaTeX
|
||||
error.
|
||||
You can work around the problem by inserting the following code in
|
||||
You can work around this problem by inserting the following code in
|
||||
\family sans
|
||||
Document\SpecialChar menuseparator
|
||||
Settings\SpecialChar menuseparator
|
||||
@ -965,6 +1002,7 @@ Local Layout
|
||||
:
|
||||
\end_layout
|
||||
|
||||
\begin_deeper
|
||||
\begin_layout Quote
|
||||
\begin_inset listings
|
||||
lstparams "basicstyle={\footnotesize\ttfamily},tabsize=4"
|
||||
@ -1060,27 +1098,48 @@ OK
|
||||
\end_inset
|
||||
|
||||
.
|
||||
This effectively defuncts beamer's example(s) environment in favour of
|
||||
covington's.
|
||||
This effectively defuncts
|
||||
\emph on
|
||||
beamer's
|
||||
\emph default
|
||||
example(s) environment in favor of
|
||||
\emph on
|
||||
covington's
|
||||
\emph default
|
||||
(i.
|
||||
\begin_inset space \thinspace{}
|
||||
\end_inset
|
||||
|
||||
e., you can use the
|
||||
\family sans
|
||||
Numbered Example
|
||||
\family default
|
||||
styles, but not
|
||||
\emph on
|
||||
beamer's
|
||||
\emph default
|
||||
|
||||
\family sans
|
||||
Example
|
||||
\family default
|
||||
and
|
||||
\family sans
|
||||
Examples
|
||||
\family default
|
||||
).
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Furthermore, if you want to use glosses in
|
||||
As of v.
|
||||
1.1 of
|
||||
\emph on
|
||||
beamer
|
||||
covington
|
||||
\emph default
|
||||
, you need to put it in a
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
fragile
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
frame.
|
||||
, this problem is solved.
|
||||
|
||||
\end_layout
|
||||
|
||||
\end_deeper
|
||||
\begin_layout Section
|
||||
Optimality Theory Tableaux
|
||||
\end_layout
|
||||
|
@ -12,7 +12,7 @@ Format 60
|
||||
# single numbered example with covington.sty
|
||||
Style Numbered_Example_(multiline)
|
||||
LatexType Environment
|
||||
LatexName example
|
||||
LatexName covexample
|
||||
NextNoIndent 1
|
||||
Margin Dynamic
|
||||
LabelSep xx
|
||||
@ -30,6 +30,11 @@ Style Numbered_Example_(multiline)
|
||||
Color Blue
|
||||
EndFont
|
||||
Requires covington
|
||||
Preamble
|
||||
\@ifundefined{covexample}{%
|
||||
\newenvironment{covexample}{\begin{example}}{\end{example}}%
|
||||
}
|
||||
EndPreamble
|
||||
Category Linguistics
|
||||
End
|
||||
|
||||
@ -38,12 +43,17 @@ End
|
||||
Style Numbered_Examples_(consecutive)
|
||||
CopyStyle Numbered_Example_(multiline)
|
||||
LatexType Item_Environment
|
||||
LatexName examples
|
||||
LatexName covexamples
|
||||
LabelString "Examples:"
|
||||
Argument item:1
|
||||
LabelString "Custom Numbering|s"
|
||||
Tooltip "Customize the numeration"
|
||||
EndArgument
|
||||
Preamble
|
||||
\@ifundefined{covexamples}{%
|
||||
\newenvironment{covexamples}{\begin{examples}}{\end{examples}}%
|
||||
}
|
||||
EndPreamble
|
||||
End
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user