From: Uwe Stöhr Date: Sun, 30 Oct 2011 22:39:05 +0000 (+0000) Subject: UserGuide.lyx: describe the new preview inset and revise the section about previewing... X-Git-Tag: 2.1.0beta1~2415 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=49d13dff6d117adf2357de7b28a0ff27c87d64b1;p=features.git UserGuide.lyx: describe the new preview inset and revise the section about previewing things git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40106 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/doc/UserGuide.lyx b/lib/doc/UserGuide.lyx index 50ab3d4fcb..8752000947 100644 --- a/lib/doc/UserGuide.lyx +++ b/lib/doc/UserGuide.lyx @@ -30732,17 +30732,15 @@ Document ! Preview \begin_layout Standard LyX allows you to generate previews of sections of your document on the fly so you can see how they will look in the final document without having - to break your train of thought with -\family sans -View\SpecialChar \menuseparator -DVI -\family default -. + to break your train of thought with viewing the output. +\end_layout + +\begin_layout Subsection +Prerequisites \end_layout \begin_layout Standard -If you would for example like to see in LyX your math formulas typeset by - LaTeX, install the LaTeX-package +To get previews working, you need the LaTeX package \series bold preview-latex \series default @@ -30756,20 +30754,54 @@ LaTeX-packages ! preview-latex \end_inset - as explained below, and turn on + (on some systems named simply +\series bold +preview +\series default +) installed. + If it is not already installed, you will find it in the TeX-catalogue, + +\begin_inset CommandInset citation +LatexCommand cite +key "TeXCatalogue" + +\end_inset + + or in the package manager of your LaTeX-system. + You obtain prettier results if you install the program +\family typewriter +pnmcrop +\family default + from the +\family typewriter +netpbm +\family default + package; for LyX on Windows this program and also the LaTeX-package is + automatically installed together with LyX. +\end_layout + +\begin_layout Subsection +Enabling previews +\end_layout + +\begin_layout Standard +If you would for example like to see in LyX your math formulas typeset by + LaTeX, activate the option \family sans -Instant +Display \begin_inset space ~ \end_inset -preview +Graphics \family default in the \family sans Tools\SpecialChar \menuseparator Preferences \family default -dialog under Look +dialog under +\family sans +Look \begin_inset space ~ \end_inset @@ -30778,7 +30810,22 @@ and \end_inset feel\SpecialChar \menuseparator -Display. +Display +\family default +. + Then set +\family sans +Instant +\begin_inset space ~ +\end_inset + +Preview +\family default + to +\family sans +On +\family default +. The \family sans Preview @@ -30793,77 +30840,296 @@ Size \begin_layout Standard Previews are generated when you load a document into LyX and when you finish editing an inset. - Previews of an already loaded document are -\emph on -not -\emph default - generated just by selecting the +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + Previews of an already loaded document are not in every case immediately + generated by activating the option \family sans -Instant +Display \begin_inset space ~ \end_inset -preview +Graphics \family default - check box, you have to reopen the documents to activate the previews. +. + Reopening the documents assures to get previews. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Selected document parts \end_layout \begin_layout Standard -LyX will generate previews of math insets. - It will also generate previews of included insets if you select the +Besides math there are other cases where you might like to see a preview, + fox example things that LyX cannot render like rotated parts or things + which are not yet supported by LyX. + To do this, insert a preview inset via the menu \family sans -Show +Insert\SpecialChar \menuseparator +Preview +\family default +. + Insert or paste the stuff that you want to preview into this inset. + The preview will be generated when the cursor is outside the preview inset. + If you click on the preview, you can edit the previewed stuff. +\end_layout + +\begin_layout Standard +An example: To create rotated boxes, you use the LaTeX command +\series bold + +\backslash +rotatebox +\series default + which is not yet supported by LyX. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + +\series bold + +\backslash +rotatebox +\series default + is explained in section +\emph on +Rotated and Scaled Boxes +\emph default + of the +\emph on +Embedded \begin_inset space ~ \end_inset -preview -\family default - check box in the insert dialog. - This is useful if you wish to generate a preview of a LaTeX figure, for - example. +Objects +\emph default + manual. +\end_layout + +\end_inset + + Instead of the TeX Code boxes you want to see in LyX the final rotated + boxes, for example to adjust the rotation angle to fit with the surrounding + text. + Therefore you create a preview inset and copy the text with the rotated + boxes into in. + Here is the result: \end_layout \begin_layout Standard -To get previews working, you need the LaTeX package +\begin_inset Preview + +\begin_layout Standard +This is a line +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +rotatebox[origin=r]{-60}{ +\end_layout + +\end_inset + + +\begin_inset Box Doublebox +position "c" +hor_pos "c" +has_inner_box 0 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "1in" +special "width" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +with rotated +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + framed text +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +rotatebox[origin=lb]{60}{ +\end_layout + +\end_inset + + +\begin_inset Formula $\int A\,\mathrm{d}x=B$ +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + and a formula. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Previewing works also for colors. + In this example a special framed, colored box was created using the LaTeX + command \series bold -preview-latex + +\backslash +fcolorbox \series default - (on some systems named simply +: +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + \series bold -preview + +\backslash +fcolorbox \series default -) installed. - If it is not already installed, you will find it in the TeX-catalogue, - -\begin_inset CommandInset citation -LatexCommand cite -key "TeXCatalogue" + is explained in section +\emph on +Colored Boxes +\emph default + of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. +\end_layout \end_inset - or in the package manager of your LaTeX-system. - You obtain prettier results if you install the program -\family typewriter -pnmcrop -\family default - from the -\family typewriter -netpbm -\family default - package; for LyX on Windows this program is automatically installed together - with LyX. + \end_layout \begin_layout Standard -\begin_inset VSpace bigskip +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fboxrule 1mm +\backslash +fboxsep 1mm +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{cyan}{magenta}{ +\end_layout + +\end_inset + +This is text within a colored, framed box. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + \end_inset \end_layout \begin_layout Standard -You can furthermore preview the LaTeX source of the whole document or parts - of it. +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Standard +If LyX does not show a preview, assure that you enabled previews as described + above and also assure that TeX Code in the preview inset is valid and that + you loaded the LaTeX packages in your document preamble that are required + by the TeX Code. + If LyX cannot create a preview, you will in most cases also not be able + to view your document due to LaTeX errors. + So if you have to use some TeX Code and don't know if it is correct, the + preview inset is a nice method to check it without the need to view the + whole document. +\end_layout + +\begin_layout Subsection +LaTeX source code +\end_layout + +\begin_layout Standard +You can preview the LaTeX source of the whole document or parts of it. Use the menu \family sans View\SpecialChar \menuseparator @@ -40253,6 +40519,25 @@ Objects manual. \end_layout +\begin_layout Subsection +Preview +\end_layout + +\begin_layout Standard +Inserts a preview inset, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Previewing-snippets-of" + +\end_inset + + for a description. +\end_layout + \begin_layout Section The Navigate Menu \begin_inset Index idx diff --git a/lib/doc/de/UserGuide.lyx b/lib/doc/de/UserGuide.lyx index 681d085c04..d644805b22 100644 --- a/lib/doc/de/UserGuide.lyx +++ b/lib/doc/de/UserGuide.lyx @@ -33138,10 +33138,30 @@ wechselt zurück zum Stil mit den Standard-Kopf/Fußzeilen \end_layout \begin_layout Section -Dokumentteile ansehen +Dokumentteile vorschauen \begin_inset CommandInset label LatexCommand label -name "sec:Dokumentteile-ansehen" +name "sec:Dokumentteile-vorschauen" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Sofortige Vorschau +\end_layout + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Dokument ! Vorschau +\end_layout \end_inset @@ -33149,19 +33169,82 @@ name "sec:Dokumentteile-ansehen" \end_layout \begin_layout Standard -LyX gestattet es, Teile Ihres Dokuments in der Druckvorschau anzusehen, - ohne es zum Beispiel mit +LyX ermöglicht es, Teile Ihres Dokuments als Vorschau anzusehen, so dass + der Schreib- und Denkfluss nicht durch die Ansicht der Ausgabe gestört + wird. +\end_layout + +\begin_layout Subsection +Voraussetzung +\end_layout + +\begin_layout Standard +Damit Vorschauen möglich sind, müssen Sie das LaTeX-Paket +\series bold +preview-latex +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-Paket ! preview-latex +\end_layout + +\end_inset + + (auf manchen System hat es den Namen +\series bold +preview +\series default +) installiert haben. + Falls es noch nicht installiert ist, finden Sie es im TeX-Katalog, +\begin_inset CommandInset citation +LatexCommand cite +key "TeX-Katalog" + +\end_inset + + oder im Paketmanager Ihres LaTeX-Systems. + Schönere Ergebnisse erzielen Sie, wenn Sie zusätzlich das Programm +\family typewriter +pnmcrop +\family default + des +\family typewriter +netpbm +\family default +-Paketes installieren. + Unter LyX für Windows wird dieses und auch das LaTeX-Paket automatisch + zusammen mit LyX installiert. +\end_layout + +\begin_layout Subsection +Vorschau aktivieren +\end_layout + +\begin_layout Standard +Wenn Sie z. +\begin_inset space \thinspace{} +\end_inset + +B. + alle mathematischen Formeln als Vorschau ansehen wollen, müssen Sie die + Option \family sans -Ansicht\SpecialChar \menuseparator -DVI +Grafiken +\begin_inset space ~ +\end_inset + +anzeigen \family default - vollständig zu bearbeiten. - Wenn Sie Ihre mathematischen Formeln als Druckvorschau sehen wollen, müssen - Sie die notwendigen Pakete wie unten beschrieben installieren und unter - + im Dialog \family sans Werkzeuge\SpecialChar \menuseparator -Einstellungen\SpecialChar \menuseparator +Einstellungen +\family default + unter +\family sans Aussehen \begin_inset space \space{} \end_inset @@ -33173,7 +33256,8 @@ Aussehen Handhabung\SpecialChar \menuseparator Anzeige \family default - + aktivieren. + Dann setzen Sie \family sans Sofortige \begin_inset space \space{} @@ -33185,7 +33269,7 @@ Vorschau \family sans An \family default - setzen. +. Die \family sans Vorschaugröße @@ -33194,77 +33278,307 @@ Vorschaugröße \end_layout \begin_layout Standard -Vorschauen werden erzeugt, wenn Sie ein Dokument öffnen und etwas eingefügt - haben. - Von einem bereits geöffneten Dokument werden -\emph on -keine -\emph default - Vorschauen erzeugt. +Vorschauen werden erzeugt, wenn Sie ein Dokument öffnen oder eine Einfügung + verlassen. \end_layout \begin_layout Standard -LyX erzeugt Vorschauen von mathematischen Objekten. - Es erzeugt auch Vorschauen von Include-Einfügungen und Unterdokumenten, - wenn Sie in dem entsprechenden Menü +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Hinweis: +\series default + Von bereits geöffneten Dokumenten werden nicht in jedem Fall sofort Vorschauen + erzeugt, wenn man die Option \family sans -Vorschau -\begin_inset space \space{} +Grafiken +\begin_inset space ~ \end_inset anzeigen \family default - ankreuzen. - Das letztere ist nützlich, wenn Sie zum Beispiel eine LaTeX-Abbildung anschauen - wollen. + aktiviert. + Man muss also diese Dokumente eventuell neu laden. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Ausgewählte Dokumentteile \end_layout \begin_layout Standard -Damit Vorschauen möglich sind, müssen Sie zusätzliche Pakete installieren. - Zunächst benötigen Sie das LaTeX-Paket -\family typewriter -preview[-latex] +Neben Formeln gibt es andere Fälle, in denen man vielleicht eine Vorschau + sehen möchte. + Zum Beispiel bei Dingen die LyX nicht anzeigen kann, wie Rotationen oder + Dinge, die LyX noch nicht unterstützt. + Dazu fügt man eine Vorschau-Einfügung über das Menü +\family sans +Einfügen\SpecialChar \menuseparator +Vorschau \family default -, das Sie hier finden: -\begin_inset Flex URL + ein und fügt oder kopiert die Sachen, die vorgeschaut werden sollen, hinein. + Die Vorschau wird erzeugt, wenn sich der Cursor außerhalb der Vorschau-Einfügun +g befindet. + Wenn man auf eine Vorschau klickt, kann das Vorgeschaute bearbeitet werden. +\end_layout + +\begin_layout Standard +Ein Beispiel: Für rotierte Boxen verwenden Sie den LaTeX-Befehl +\series bold + +\backslash +rotatebox +\series default +, der noch nicht von LyX unterstützt wird. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + +\series bold + +\backslash +rotatebox +\series default + ist in Abschnitt +\emph on +Rotierte Boxen +\emph default + des +\emph on +Eingebettete +\begin_inset space ~ +\end_inset + +Objekte +\emph default + Handbuchs erklärt. +\end_layout + +\end_inset + + Anstelle der TeX-Code Boxen wollen Sie in LyX die rotierten Boxen sehen, + um z. +\begin_inset space \thinspace{} +\end_inset + +B. + den Rotationswinkel so einstellen zu können, dass er zum umgebenden Text + passt. + Daher fügen Sie eine Vorschau-Einfügung ein und kopieren den Text mit den + rotierten Boxen hinein. + Hier ist das Ergebnis: +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +Dies ist eine Zeile +\begin_inset ERT status collapsed \begin_layout Plain Layout -CTAN/support/preview-latex/ + +\backslash +rotatebox[origin=r]{-60}{ \end_layout \end_inset -. - Schönere Ergebnisse erzielen Sie, wenn Sie zusätzlich -\family typewriter -pnm\SpecialChar \- -crop -\family default + +\begin_inset Box Doublebox +position "c" +hor_pos "c" +has_inner_box 0 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "1in" +special "width" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +mit rotiertem +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +, gerahmten Text +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +rotatebox[origin=lb]{60}{ +\end_layout + +\end_inset + + +\begin_inset Formula $\int A\,\mathrm{d}x=B$ +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + und einer Formel. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Die Vorschau funktioniert auch mit Farben. + In diesem Beispiel wurde eine spezielle gerahmte, farbige Box mit dem LaTeX-Bef +ehl +\series bold + +\backslash +fcolorbox +\series default + erzeugt: +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + +\series bold + +\backslash +fcolorbox +\series default + ist in Abschnitt +\emph on +Farbige Boxen +\emph default des -\family typewriter -netpbm -\family default --Paketes installieren. - Unter Windows wird es zusammen mit LyX automatisch installiert. +\emph on +Eingebettete +\begin_inset space ~ +\end_inset + +Objekte +\emph default + Handbuchs erklärt. +\end_layout + +\end_inset + + \end_layout \begin_layout Standard -\begin_inset VSpace bigskip +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fboxrule 1mm +\backslash +fboxsep 1mm +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{cyan}{magenta}{ +\end_layout + +\end_inset + +Dies ist Text in einer farbigen, gerahmten Box. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + \end_inset \end_layout \begin_layout Standard +\begin_inset VSpace medskip +\end_inset -\lang english -You can furthermore preview the LaTeX source of the whole Dokument oder - parts of it. - Use the -\lang ngerman - Menü + +\end_layout + +\begin_layout Standard +Falls LyX keine Vorschau anzeigt, stellen Sie sicher, dass Sie Vorschauen, + wie oben beschrieben, aktiviert haben, dass TeX-Code in der Vorschau-Einfügung + korrekt ist und dass Sie die LaTeX-Pakete in der Dokumentpräambel geladen + haben, die vom TeX-Code benötigt werden. + Wenn LyX keine Vorschau erzeugen kann, werden Sie in den meisten Fällen + auch keine Ausgabe Ihres Dokumentes aufgrund von LaTeX-Fehlern erzeugen + können. + Falls Sie also TeX-Code verwenden müssen und sich nicht sicher sind, ob + er korrekt ist, ist die Vorschau-Einfügung eine gute Methode ihn zu testen, + ohne das gesamte Dokument anzusehen. +\end_layout + +\begin_layout Subsection +LaTeX-Quellcode +\end_layout + +\begin_layout Standard +Des Weiteren kann der LaTeX-Quellcode des gesamten Dokuments oder von Teilen + davon angeschaut werden. + Das Menü \family sans Ansicht\SpecialChar \menuseparator Quelle @@ -33273,14 +33587,13 @@ Quelle ansehen \family default -\lang english - und a Fenster will be shown where you can siehe the LaTeX-source code. - The Fenster zeigt the source of the whole Absatz where the Cursor is currently - in. - You can auch select Dokument parts in LyX's main Fenster, then nur this - selection (when it is more than one Absatz) is shown as source code. - To view the whole Dokument as source, enable the corresponding Option in - the source view Fenster. + öffnet ein Fenster in dem der LaTeX-Quellcode angezeigt wird. + Das Fenster zeigt den Quellcode des gesamten Absatzes, indem sich der Cursor + momentan befindet. + Man kann auch Dokumentteile in LyXs Hauptfenster markieren, dann wird nur + der Code der Auswahl angezeigt (wenn es mehr als ein Absatz ist). + Um das gesamte Dokument als Quellcode anzusehen, verwendet man die entsprechend +e Option im Quellcode-Fenster. \end_layout \begin_layout Section @@ -33317,10 +33630,10 @@ Einleitung \end_layout \begin_layout Standard - +Das fortgeschrittene Suchen und Ersetzen \lang english -The advanced find und replace Feature of LyX allows für searching of complex, - format-sensitive text segments und mathematics contents within LyX Dokumente. + Feature of LyX allows für searching of complex, format-sensitive text segments + und mathematics contents within LyX Dokumente. It is an enhancement of the standard (quick) find und replace Feature. The key-Features are: \end_layout @@ -36420,7 +36733,7 @@ Quelle ansehen \begin_inset CommandInset ref LatexCommand ref -reference "sec:Dokumentteile-ansehen" +reference "sec:Dokumentteile-vorschauen" \end_inset @@ -37953,6 +38266,25 @@ Eingebettete Objekte Handbuchs erklärt und auch verglichen sind. \end_layout +\begin_layout Subsection +Vorschau +\end_layout + +\begin_layout Standard +Fügt eine Vorschau-Einfügung ein, siehe Abschnitt +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Dokumentteile-vorschauen" + +\end_inset + +. +\end_layout + \begin_layout Section Das Navigieren Menü \begin_inset Index idx @@ -43290,7 +43622,7 @@ Sofortige Vorschau \begin_inset CommandInset ref LatexCommand ref -reference "sec:Dokumentteile-ansehen" +reference "sec:Dokumentteile-vorschauen" \end_inset @@ -44539,7 +44871,7 @@ status open \begin_layout Plain Layout \series bold -Achtung: +Hinweis: \series default Dieses Feld kann unter Windows leer gelassen werden, da es keinen Effekt hat. diff --git a/lib/doc/es/UserGuide.lyx b/lib/doc/es/UserGuide.lyx index 2ad26001bf..e4333df502 100644 --- a/lib/doc/es/UserGuide.lyx +++ b/lib/doc/es/UserGuide.lyx @@ -31179,16 +31179,22 @@ Documentos ! Vista instantánea \begin_layout Standard LyX permite generar sobre la marcha vistas de ciertas partes del documento, y ver su aspecto final, sin necesidad de interrumpir el ritmo de trabajo - cada vez con -\family sans -Ver -\family default + cada vez con +\lang english + viewing the output +\lang spanish . \end_layout +\begin_layout Subsection + +\lang english +Prerequisites +\end_layout + \begin_layout Standard -Si deseas ver, por ejemplo, cómo quedarían tus ecuaciones impresas por LaTeX, - debes instalar el paquete LaTeX +Para que funcione la vista previa inmediata debe estar instalado el paquete + LaTeX \series bold preview-latex \series default @@ -31202,18 +31208,49 @@ LaTeX, paquetes ! preview-latex \end_inset - como se explica después, y marcar -\family sans -Vista -\begin_inset space ~ + (también llamado simplemente +\series bold +preview +\series default +). + Lo encontrarás en el Catálogo TeX, +\begin_inset CommandInset citation +LatexCommand cite +key "TeXCatalogue" + \end_inset -preliminar + o en el administrador de paquetes de tu sistema. + Obtendrás instantáneas mejores si además instalas +\family typewriter +pnmcrop, +\family default + que forma parte del paquete +\family typewriter +netpbm +\family default +; en Windows este programa y también el paquete se instala automáticamente + junto con LyX. +\end_layout + +\begin_layout Subsection + +\lang english +Enabling previews +\end_layout + +\begin_layout Standard +Si deseas ver, por ejemplo, cómo quedarían tus ecuaciones impresas por LaTeX, + activar la opción +\family sans +\lang english +Display \begin_inset space ~ \end_inset -inmediata +Graphics \family default +\lang spanish en el diálogo \family sans Herramientas\SpecialChar \menuseparator @@ -31222,6 +31259,23 @@ Apariencia\SpecialChar \menuseparator Visualización \family default . + +\lang english +Then set +\family sans +Instant +\begin_inset space ~ +\end_inset + +Preview +\family default + to +\family sans +On +\family default +. + +\lang spanish El \family sans Tamaño de la vista @@ -31231,98 +31285,322 @@ Tamaño de la vista \begin_layout Standard Las vistas se generan cuando cargas un documento en Lyx y cuando terminas - de editar una ecuación o un gráfico. - Las vistas inmediatas en un documento ya abierto -\emph on -no -\emph default - se generan -\emph on -ipso facto -\emph default -al activar la + de editar +\lang english +an inset +\lang spanish +. +\end_layout + +\begin_layout Standard + +\lang english +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +\lang english +Note: +\series default + Previews of an already loaded document are not in every case immediately + generated by activating the option \family sans -Vista +Display \begin_inset space ~ \end_inset -preliminar -\begin_inset space ~ +Graphics +\family default +. + Reopening the documents assures to get previews. +\end_layout + \end_inset -inmediata -\family default -, es preciso reabrir el documento. + +\end_layout + +\begin_layout Subsection + +\lang english +Selected document parts \end_layout \begin_layout Standard -LyX generará instantáneas de ecuaciones. - También de gráficos si se marca la opción + +\lang english +Besides math there are other cases where you might like to see a preview, + fox example things that LyX cannot render like rotated parts or things + which are not yet supported by LyX. + To do this, insert a preview inset via the menu \family sans -Mostrar +Insert\SpecialChar \menuseparator +Preview \family default +. + Insert or paste the stuff that you want to preview into this inset. + The preview will be generated when the cursor is outside the preview inset. + If you click on the preview, you can edit the previewed stuff. +\end_layout + +\begin_layout Standard + +\lang english +An example: To create rotated boxes, you use the LaTeX command +\series bold + +\backslash +rotatebox +\series default + which is not yet supported by LyX. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +\series bold +\lang english + +\backslash +rotatebox +\series default + is explained in section +\emph on +Rotated and Scaled Boxes +\emph default + of the +\emph on +Embedded \begin_inset space ~ \end_inset +Objects +\emph default + manual. +\end_layout -\family sans -en -\family default +\end_inset + + Instead of the TeX Code boxes you want to see in LyX the final rotated + boxes, for example to adjust the rotation angle to fit with the surrounding + text. + Therefore you create a preview inset and copy the text with the rotated + boxes into in. + Here is the result: +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard + +\lang english +This is a line +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +rotatebox[origin=r]{-60}{ +\end_layout -\begin_inset space ~ \end_inset -\family sans -LyX -\family default - en el cuadro de diálogo -\family sans -Gráficos. +\begin_inset Box Doublebox +position "c" +hor_pos "c" +has_inner_box 0 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "1in" +special "width" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout + +\lang english +with rotated +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + framed text +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +rotatebox[origin=lb]{60}{ +\end_layout + +\end_inset + + +\begin_inset Formula $\int A\,\mathrm{d}x=B$ +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + and a formula. +\end_layout + +\end_inset + -\family default - Esto último es útil si deseas ver instantáneamente una figura LaTeX, por - ejemplo. \end_layout \begin_layout Standard -Para que funcione la vista previa inmediata debe estar instalado el paquete - LaTeX + +\lang english +Previewing works also for colors. + In this example a special framed, colored box was created using the LaTeX + command \series bold -preview-latex + +\backslash +fcolorbox \series default - (también llamado simplemente +: +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + \series bold -preview +\lang english + +\backslash +fcolorbox \series default -). - Lo encontrarás en el Catálogo TeX, -\begin_inset CommandInset citation -LatexCommand cite -key "TeXCatalogue" + is explained in section +\emph on +Colored Boxes +\emph default + of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. +\end_layout \end_inset - o en el administrador de paquetes de tu sistema. - Obtendrás instantáneas mejores si además instalas -\family typewriter -pnmcrop, -\family default - que forma parte del paquete -\family typewriter -netpbm -\family default -; en Windows este programa se instala automáticamente junto con LyX. + \end_layout \begin_layout Standard -\begin_inset VSpace bigskip +\begin_inset Preview + +\begin_layout Standard + +\lang english +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fboxrule 1mm +\backslash +fboxsep 1mm +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{cyan}{magenta}{ +\end_layout + +\end_inset + +This is text within a colored, framed box. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + \end_inset \end_layout +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Standard + +\lang english +If LyX does not show a preview, assure that you enabled previews as described + above and also assure that TeX Code in the preview inset is valid and that + you loaded the LaTeX packages in your document preamble that are required + by the TeX Code. + If LyX cannot create a preview, you will in most cases also not be able + to view your document due to LaTeX errors. + So if you have to use some TeX Code and don't know if it is correct, the + preview inset is a nice method to check it without the need to view the + whole document. +\end_layout + +\begin_layout Subsection + +\lang english +LaTeX source code +\end_layout + \begin_layout Standard Por otra parte, puedes ver el código LaTeX de todo el documento o de partes del mismo. @@ -40636,6 +40914,33 @@ Objetos insertados Ahí se comparan los diversos métodos. \end_layout +\begin_layout Subsection + +\lang english +Preview +\end_layout + +\begin_layout Standard + +\lang english +Inserts a preview inset, see section +\begin_inset space ~ +\end_inset + + +\lang spanish + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Vista-preliminar-inmediata" + +\end_inset + + +\lang english + for a description. +\end_layout + \begin_layout Section El menú Navegar \begin_inset Index idx diff --git a/lib/doc/fr/UserGuide.lyx b/lib/doc/fr/UserGuide.lyx index 3e7310ce10..8213b2a7c9 100644 --- a/lib/doc/fr/UserGuide.lyx +++ b/lib/doc/fr/UserGuide.lyx @@ -32127,16 +32127,21 @@ Document ! Aperçu LyX vous permet de générer un prévisionnement de portions de votre document à la volée pour que vous ayez un aperçu de leur aspect final sans avoir à perturber le fil de votre pensée avec des appels à -\family sans - Visualiser\SpecialChar \menuseparator -DVI -\family default +\lang english + viewing the output +\lang french . \end_layout +\begin_layout Subsection + +\lang english +Prerequisites +\end_layout + \begin_layout Standard -Si vous voulez voir dans LyX comment LaTeX va mettre en forme vos équations, - installez le paquetage LaTeX +Pour pouvoir profiter des aperçus sur le vif, vous avez besoin du paquetage + LaTeX \series bold preview-latex \series default @@ -32150,22 +32155,50 @@ Paquetages LaTeX ! preview-latex \end_inset - comme c'est expliqué plus loin et activez -\family sans -Aperçu -\begin_inset space ~ -\end_inset + (sur certains systèmes il s'appelle simplement +\series bold +preview +\series default +). + S'il n'est pas déja installé, vous le trouverez dans le catalogue TeX, + +\begin_inset CommandInset citation +LatexCommand cite +key "TeXCatalogue" -sur -\begin_inset space ~ \end_inset -le + ou en passant par le gestionnaire de paquetages de votre installation LaTeX. + Vous aurez de plus jolis résultats si vous installez le programme +\family typewriter +pnmcrop +\family default + du paquetage +\family typewriter +netpbm +\family default + ; Pour LyX sous Windows ce programme y aussi le paquetage est installé + avec LyX. +\end_layout + +\begin_layout Subsection + +\lang english +Enabling previews +\end_layout + +\begin_layout Standard +Si vous voulez voir dans LyX comment LaTeX va mettre en forme vos équations, + activez l'option +\family sans +\lang english +Display \begin_inset space ~ \end_inset -vif +Graphics \family default +\lang french dans la rubrique \family sans Apparence\SpecialChar \menuseparator @@ -32177,7 +32210,23 @@ Outils\SpecialChar \menuseparator Préférences. \family default -La +\lang english +Then set +\family sans +Instant +\begin_inset space ~ +\end_inset + +Preview +\family default + to +\family sans +On +\family default +. + +\lang french + La \family sans Taille \begin_inset space ~ @@ -32195,80 +32244,317 @@ l'aperçu \begin_layout Standard Les aperçus sont générés quand vous chargez un document et quand vous avez fini d'éditer un insert. - Les aperçus d'un document déjà chargé ne sont pas générés juste en sélectionnan -t +\end_layout + +\begin_layout Standard + +\lang english +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +\lang english +Note: +\series default + Previews of an already loaded document are not in every case immediately + generated by activating the option \family sans -Aperçu +Display \begin_inset space ~ \end_inset -sur -\begin_inset space ~ -\end_inset +Graphics +\family default +. + Reopening the documents assures to get previews. +\end_layout -le -\begin_inset space ~ \end_inset -vif -\family default -, vous devez le ré-ouvrir pour activer les aperçus. + +\end_layout + +\begin_layout Subsection + +\lang english +Selected document parts \end_layout \begin_layout Standard -LyX va générer des aperçus des inserts mathématiques. - Il va aussi générer des aperçus des inserts d'inclusion si vous avez coché - la case + +\lang english +Besides math there are other cases where you might like to see a preview, + fox example things that LyX cannot render like rotated parts or things + which are not yet supported by LyX. + To do this, insert a preview inset via the menu \family sans -Affiche +Insert\SpecialChar \menuseparator +Preview +\family default +. + Insert or paste the stuff that you want to preview into this inset. + The preview will be generated when the cursor is outside the preview inset. + If you click on the preview, you can edit the previewed stuff. +\end_layout + +\begin_layout Standard + +\lang english +An example: To create rotated boxes, you use the LaTeX command +\series bold + +\backslash +rotatebox +\series default + which is not yet supported by LyX. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + +\series bold +\lang english + +\backslash +rotatebox +\series default + is explained in section +\emph on +Rotated and Scaled Boxes +\emph default + of the +\emph on +Embedded \begin_inset space ~ \end_inset -aperçu -\family default - dans la fenêtre de dialogue d'insert. - C'est utile si, par exemple, vous voulez générer un aperçu d'une figure - LaTeX. +Objects +\emph default + manual. +\end_layout + +\end_inset + + Instead of the TeX Code boxes you want to see in LyX the final rotated + boxes, for example to adjust the rotation angle to fit with the surrounding + text. + Therefore you create a preview inset and copy the text with the rotated + boxes into in. + Here is the result: \end_layout \begin_layout Standard -Pour pouvoir profiter des aperçus sur le vif, vous avez besoin du paquetage - LaTeX +\begin_inset Preview + +\begin_layout Standard + +\lang english +This is a line +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +rotatebox[origin=r]{-60}{ +\end_layout + +\end_inset + + +\begin_inset Box Doublebox +position "c" +hor_pos "c" +has_inner_box 0 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "1in" +special "width" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout + +\lang english +with rotated +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + framed text +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +rotatebox[origin=lb]{60}{ +\end_layout + +\end_inset + + +\begin_inset Formula $\int A\,\mathrm{d}x=B$ +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + and a formula. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\lang english +Previewing works also for colors. + In this example a special framed, colored box was created using the LaTeX + command \series bold -preview-latex + +\backslash +fcolorbox \series default - (sur certains systèmes il s'appelle simplement +: +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + \series bold -preview +\lang english + +\backslash +fcolorbox \series default -). - S'il n'est pas déja installé, vous le trouverez dans le catalogue TeX, - -\begin_inset CommandInset citation -LatexCommand cite -key "TeXCatalogue" + is explained in section +\emph on +Colored Boxes +\emph default + of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. +\end_layout \end_inset - ou en passant par le gestionnaire de paquetages de votre installation LaTeX. - Vous aurez de plus jolis résultats si vous installez le programme -\family typewriter -pnmcrop -\family default - du paquetage -\family typewriter -netpbm -\family default - ; Pour LyX sous Windows ce programme est installé avec LyX. + \end_layout \begin_layout Standard -\begin_inset VSpace bigskip +\begin_inset Preview + +\begin_layout Standard + +\lang english +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fboxrule 1mm +\backslash +fboxsep 1mm +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{cyan}{magenta}{ +\end_layout + +\end_inset + +This is text within a colored, framed box. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + \end_inset \end_layout +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Standard + +\lang english +If LyX does not show a preview, assure that you enabled previews as described + above and also assure that TeX Code in the preview inset is valid and that + you loaded the LaTeX packages in your document preamble that are required + by the TeX Code. + If LyX cannot create a preview, you will in most cases also not be able + to view your document due to LaTeX errors. + So if you have to use some TeX Code and don't know if it is correct, the + preview inset is a nice method to check it without the need to view the + whole document. +\end_layout + +\begin_layout Subsection + +\lang english +LaTeX source code +\end_layout + \begin_layout Standard Vous pouvez aussi avoir un aperçu du code source LaTeX de tout ou d'une partie de votre document. @@ -40337,6 +40623,33 @@ Objets insérés Vous y trouverez une comparaison des différentes méthodes. \end_layout +\begin_layout Subsection + +\lang english +Preview +\end_layout + +\begin_layout Standard + +\lang english +Inserts a preview inset, see section +\begin_inset space ~ +\end_inset + + +\lang french + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Aperçu-de-morceaux" + +\end_inset + + +\lang english + for a description. +\end_layout + \begin_layout Section Le Menu Naviguer \begin_inset Index idx diff --git a/lib/doc/ja/UserGuide.lyx b/lib/doc/ja/UserGuide.lyx index b864a1547a..cc05c30c14 100644 --- a/lib/doc/ja/UserGuide.lyx +++ b/lib/doc/ja/UserGuide.lyx @@ -38738,16 +38738,23 @@ status collapsed \end_layout \begin_layout Standard -LyXでは、作業をしながら文書の各節のプレビューを生成することが可能なので、 -\family sans -表示\SpecialChar \menuseparator -DVI -\family default -を使うことによって一連の思考を中断することなく、完成文書がどのように見えるかを確認することができます。 + +\lang english +LyX allows you to generate previews of sections of your document on the + fly so you can see how they will look in the final document without having + to break your train of thought with viewing the output +\lang japanese +。 +\end_layout + +\begin_layout Subsection + +\lang english +Prerequisites \end_layout \begin_layout Standard -例えば、LaTeXが植字する数式をLyX内で見たいとすれば、以下に説明するように +プレビューが動作するためには、 \series bold preview-latex \series default @@ -38761,21 +38768,85 @@ LaTeXぱっけーじ@LaTeXパッケージ ! preview-latex \end_inset -というLaTeXパッケージを導入し、 +(システムによっては単に +\series bold +preview +\series default +と命名されています)というLaTeXパッケージが導入されていることが必要です。もしこれがすでに導入されていなければ、TeX Catalogue + +\begin_inset CommandInset citation +LatexCommand cite +key "TeXCatalogue" + +\end_inset + +か、使用中のLaTeXのパッケージマネージャで見つけることができます。 +\family typewriter +netpbm +\family default +パッケージから +\family typewriter +pnmcrop +\family default +プログラムを導入すれば、さらに美しい出力を得ることができます。 +\lang english +For LyX on Windows this program and also the LaTeX-package is automatically + installed together with LyX +\lang japanese +。 +\end_layout + +\begin_layout Subsection + +\lang english +Enabling previews +\end_layout + +\begin_layout Standard + +\lang english +If you would for example like to see in LyX your math formulas typeset by + LaTeX, activate the option \family sans -ツール\SpecialChar \menuseparator -設定 +Display +\begin_inset space ~ +\end_inset + +Graphics \family default -ダイアログの + in the \family sans -操作性\SpecialChar \menuseparator -表示 +Tools\SpecialChar \menuseparator +Preferences \family default -の下にある +dialog under \family sans -自動プレビュー +Look +\begin_inset space ~ +\end_inset + +and +\begin_inset space ~ +\end_inset + +feel\SpecialChar \menuseparator +Display \family default -を有効にします。 +. + Then set +\family sans +Instant +\begin_inset space ~ +\end_inset + +Preview +\family default + to +\family sans +On +\family default +\lang japanese +。 \family sans プレビューの大きさ \family default @@ -38795,45 +38866,314 @@ LaTeXぱっけーじ@LaTeXパッケージ ! preview-latex \end_layout \begin_layout Standard -LyXは、数式挿入枠のプレビューを生成します。また、インクルード挿入枠も、挿入ダイアログの + +\lang english +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +\lang english +Note: +\series default + Previews of an already loaded document are not in every case immediately + generated by activating the option +\family sans +Display +\begin_inset space ~ +\end_inset + +Graphics +\family default +. + Reopening the documents assures to get previews. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection + +\lang english +Selected document parts +\end_layout + +\begin_layout Standard + +\lang english +Besides math there are other cases where you might like to see a preview, + fox example things that LyX cannot render like rotated parts or things + which are not yet supported by LyX. + To do this, insert a preview inset via the menu \family sans -プレビューを表示 +Insert\SpecialChar \menuseparator +Preview \family default -チェックボックスを有効にしておくと、プレビューを表示します。これは、例えば、LaTeX図のプレビューを生成したいときに便利です。 +. + Insert or paste the stuff that you want to preview into this inset. + The preview will be generated when the cursor is outside the preview inset. + If you click on the preview, you can edit the previewed stuff. \end_layout \begin_layout Standard -プレビューが動作するためには、 + +\lang english +An example: To create rotated boxes, you use the LaTeX command \series bold -preview-latex + +\backslash +rotatebox \series default -(システムによっては単に + which is not yet supported by LyX. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + \series bold -preview +\lang english + +\backslash +rotatebox \series default -と命名されています)というLaTeXパッケージが導入されていることが必要です。もしこれがすでに導入されていなければ、TeX Catalogue - -\begin_inset CommandInset citation -LatexCommand cite -key "TeXCatalogue" + is explained in section +\emph on +Rotated and Scaled Boxes +\emph default + of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. +\end_layout \end_inset -か、使用中のLaTeXのパッケージマネージャで見つけることができます。 -\family typewriter -netpbm -\family default -パッケージから -\family typewriter -pnmcrop -\family default -プログラムを導入すれば、さらに美しい出力を得ることができます。Windows版LyXでは、このプログラムはLyXとともに自動的に導入されています。 -\begin_inset VSpace bigskip + Instead of the TeX Code boxes you want to see in LyX the final rotated + boxes, for example to adjust the rotation angle to fit with the surrounding + text. + Therefore you create a preview inset and copy the text with the rotated + boxes into in. + Here is the result: +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard + +\lang english +This is a line +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +rotatebox[origin=r]{-60}{ +\end_layout + +\end_inset + + +\begin_inset Box Doublebox +position "c" +hor_pos "c" +has_inner_box 0 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "1in" +special "width" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout + +\lang english +with rotated +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + framed text +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +rotatebox[origin=lb]{60}{ +\end_layout + +\end_inset + + +\begin_inset Formula $\int A\,\mathrm{d}x=B$ +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + and a formula. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\lang english +Previewing works also for colors. + In this example a special framed, colored box was created using the LaTeX + command +\series bold + +\backslash +fcolorbox +\series default +: +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + +\series bold +\lang english + +\backslash +fcolorbox +\series default + is explained in section +\emph on +Colored Boxes +\emph default + of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard + +\lang english +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fboxrule 1mm +\backslash +fboxsep 1mm +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{cyan}{magenta}{ +\end_layout + +\end_inset + +This is text within a colored, framed box. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + \end_inset \end_layout +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Standard + +\lang english +If LyX does not show a preview, assure that you enabled previews as described + above and also assure that TeX Code in the preview inset is valid and that + you loaded the LaTeX packages in your document preamble that are required + by the TeX Code. + If LyX cannot create a preview, you will in most cases also not be able + to view your document due to LaTeX errors. + So if you have to use some TeX Code and don't know if it is correct, the + preview inset is a nice method to check it without the need to view the + whole document. +\end_layout + +\begin_layout Subsection + +\lang english +LaTeX source code +\end_layout + \begin_layout Standard さらに、文書全体あるいは一部のLaTeXソースをプレビューすることもできます。 \family sans @@ -45794,6 +46134,33 @@ External Material の節に説明と比較があります。 \end_layout +\begin_layout Subsection + +\lang english +Preview +\end_layout + +\begin_layout Standard + +\lang english +Inserts a preview inset, see section +\begin_inset space ~ +\end_inset + + +\lang japanese + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:文書の断片プレビュー" + +\end_inset + + +\lang english + for a description. +\end_layout + \begin_layout Section 移動メニュー \begin_inset Index idx