Re: input of LaTeX Code
Am Donnerstag, 14. April 2011 schrieben Sie: > On 04/14/2011 11:03 AM, Rainer Dorsch wrote: > > Hello, > > > > I do generate a table in LaTeX source format. I included it in a LyX > > document using ERT and then \input{file.tex}. That worked well. The > > trouble starts, when I do that in a subdocument, which is not in the > > same directory as the toplevel document. Then I need to specify the > > relative path and that is different for the subdocument and the toplevel > > document. > > > > When I input files in non-ERT mode, LyX handles this problem. But if I > > use non-ERT I cannot input a LaTeX file, only LyX files. > > This is because LyX does not know to copy the file to the temporary > directory when it is done via ERT, and the trick it uses to overcome > this won't work for documents in different directories. But is there > some reason you have to use ERT here and not the Include inset? Many thanks for the quick reply. I did not Insert->File->Child Document. Selected Input there and choose a *.tex file. Before I was under the impression I could only include LyX files as child documents. Is that the same as the include inset you are refering to? Thanks, Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 email: rdor...@web.de jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/ signature.asc Description: This is a digitally signed message part.
input of LaTeX Code
Hello, I do generate a table in LaTeX source format. I included it in a LyX document using ERT and then \input{file.tex}. That worked well. The trouble starts, when I do that in a subdocument, which is not in the same directory as the toplevel document. Then I need to specify the relative path and that is different for the subdocument and the toplevel document. When I input files in non-ERT mode, LyX handles this problem. But if I use non-ERT I cannot input a LaTeX file, only LyX files. Does anybody have a solution for this? Thanks, Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/
Re: PDF (pdflatex) View Missing
Paul, thanks for your reply. Am Dienstag, 25. Januar 2011 schrieb Paul Rubin: > You might also grep the preferences file in that folder; entries in > preferences override those in lyxrc.defaults. There is a match, but that seems ok to me: rd@blackbox:~/.lyx$ grep pdf2 *|grep -v pdf2ps lyxrc.defaults:\Format pdf2 pdf"PDF (pdflatex)"F "xdg-open" "" "document,vector" lyxrc.defaults:\converter pdflatex pdf2 "pdflatex $$i" "latex" lyxrc.defaults~:\Format pdf2 pdf"PDF (pdflatex)"F "gv" "" lyxrc.defaults~:\converter latex pdf2 "pdflatex $$i" "latex" preferences:\format "pdf2" "pdf" "PDF (pdflatex)" "F" "okular" "" "" rd@blackbox:~/.lyx$ > If that also looks reasonable, you might rename the entire .lyx directory > to something else (for safekeeping) and then restart LyX. It should > create a new .lyx directory. I've seen reports of odd or inexplicable > problems that persisted until the user directory was regenerated (although > I think those were mainly if not exclusively on Windows). Indeed that fixes the problem. I diff'ed .lyx and .lyx.bak in case somebody wants to investigate in more detail (I could provide the entire .lyx and .lyx.bak directories if somebody wants them): rd@blackbox:~$ diff -r .lyx/lyxrc.defaults .lyx.bak/lyxrc.defaults rd@blackbox:~$ ls .lyx/preferences ls: cannot access .lyx/preferences: No such file or directory rd@blackbox:~$ cat .lyx.bak/preferences # This file is written by LyX, if you want to make your own # modifications you should do them from inside LyX and save # # MISC SECTION ## # \user_name "Rainer Dorsch" \user_email "" \preview on # # SCREEN & FONTS SECTION # \screen_dpi 83 # # COLOR SECTION ### # \set_color "cursor" "#00" \set_color "background" "#faf0e6" \set_color "foreground" "#00" \set_color "selection" "#add8e6" \set_color "latex" "#8b" \set_color "preview" "#00" \set_color "note" "#00" \set_color "notebg" "#00" \set_color "depthbar" "#cd5c5c" \set_color "language" "#ff" \set_color "command" "#00" \set_color "commandbg" "#f0" \set_color "commandframe" "#00" \set_color "special" "#4169e1" \set_color "graphicsbg" "#faf0e6" \set_color "math" "#8b" \set_color "mathbg" "#faf0e6" \set_color "mathmacrobg" "#faf0e6" \set_color "mathframe" "#ff00ff" \set_color "mathline" "#ff" \set_color "captionframe" "#8b" \set_color "collapsable" "#8b" \set_color "collapsableframe" "#cd5c5c" \set_color "insetframe" "#cd5c5c" \set_color "error" "#ff" \set_color "eolmarker" "#a52a2a" \set_color "added_space" "#a52a2a" \set_color "topline" "#a52a2a" \set_color "tabularline" "#00" \set_color "tabularonoffline" "#b0c4de" \set_color "pagebreak" "#4169e1" \set_color "buttonbg" "#cc" # # PRINTER SECTION ### # # # EXPORT SECTION # # # TEX SECTION ### # # # FILE SECTION ## # # # PLAIN TEXT EXPORT SECTION ## # # # SPELLCHECKER SECTION ## # # # LANGUAGE SUPPORT SECTION ## # # # 2nd MISC SUPPORT SECTION ## # # # FORMATS SECTION ## # \format "pdf2" "pdf" "PDF (pdflatex)" "F" "okular" "" "" \format "pdf4" "pdf" "PDF (tex2pdf)" "" "acroread" "" "" # # CONVERTERS SECTION ## # \converter "latex" "pdf4" "tex2pdf $$i" "latex" # # COPIERS SECTION ## # rd@blackbox:~$ Thanks, Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 email: rdor...@web.de jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/ signature.asc Description: This is a digitally signed message part.
Re: PDF (pdflatex) View Missing
Am Freitag, 21. Januar 2011 schrieb Paul Rubin: > Rainer Dorsch web.de> writes: > > although I see in a configure run here > > > > +checking for "pdflatex"... yes > > > > I do not see the "PDF (pdflatex)" in the view or export options. > > PDF(pdflatex) is in the formats and converters defined though... > > Does Tools > Preferences... > File Handling > Converters have an entry for > LaTeX (pdflatex) -> PDF (pdflatex), and does it look correct? Yes, that looks all ok to me rd@blackbox:~/.lyx$ grep pdf2 lyxrc.defaults|grep -v pdf2ps \Format pdf2 pdf"PDF (pdflatex)"F "xdg-open" "" "document,vector" \converter pdflatex pdf2 "pdflatex $$i" "latex" rd@blackbox:~/.lyx$ Thanks, Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 email: rdor...@web.de jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/ signature.asc Description: This is a digitally signed message part.
PDF (pdflatex) View Missing
Hello, although I see in a configure run here +checking for "pdflatex"... yes I do not see the "PDF (pdflatex)" in the view or export options. PDF(pdflatex) is in the formats and converters defined though... Any idea why I could do to fix that? Thanks, Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 email: rdor...@web.de jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/ signature.asc Description: This is a digitally signed message part.
Re: Subversion Revision in LyX Document
Am Wednesday 26 May 2010 23:20:48 schrieb Julien Rioux: > On 26/05/2010 1:17 PM, Rainer Dorsch wrote: > > Hello, > > > > we maintain our LyX document in subversion. From time to time, I > > distribute a pdf. I would like to include the subversion revision number > > in the document. Is there a easy way to do that? > > > > Thanks > > Rainer > > In the preamble: > \usepackage{svn} > \SVN $Revision$ > > In the document, inside a TeX code box: > \SVNRevision > > See also this thread: > http://www.mail-archive.com/lyx-users@lists.lyx.org/msg78371.html > > and: > http://jtauber.com/blog/2006/03/28/subversion_keywords_in_latex_documents/ Hi Julien, I thought that works well, but now after understanding keyword substitution in subversion in more detail, I found that it does not work very well (or I did not fully understand the svn package): We have a document with multiple child documents. There are few changes in the top-level document. SVN replaces the $Revision$ during checkin only, when a file is modified. Since the top-level file is modified rarely, I see rarely updates on $Revision$. The svn manual clearly describes that svnversion should be used for this purpose http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html Is there a way to insert the output of an external command (svnversion) during compile time into a LyX document (it would not hurt to let also LyX display the result ;-) ? Thanks, Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/
Re: Wrap of long strings
Am Donnerstag, 27. Mai 2010 schrieb Liviu Andronic: > On 5/27/10, Rainer Dorsch wrote: > > in some parts of a document I have texts with long words (e.g. directory > > names, etc.), which I want to wrap whenever I reach \textwidth (even in > > the middle of a word). Has anybody a suggestion how to do that > > efficiently for a limited small parts in a document? I would even be > > happy to just mark the word, that it can be broken up at any place > > One thing to is Insert > Formatting > Hyphenation point, which will be > used if needed. Thanks for that hint. I went with the "special character" "breakable slash". Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 email: rdor...@web.de jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/ signature.asc Description: This is a digitally signed message part.
Wrap of long strings
Hello, in some parts of a document I have texts with long words (e.g. directory names, etc.), which I want to wrap whenever I reach \textwidth (even in the middle of a word). Has anybody a suggestion how to do that efficiently for a limited small parts in a document? I would even be happy to just mark the word, that it can be broken up at any place Thanks, Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/
Re: Subversion Revision in LyX Document
Am Wednesday 26 May 2010 23:20:48 schrieb Julien Rioux: > On 26/05/2010 1:17 PM, Rainer Dorsch wrote: > > Hello, > > > > we maintain our LyX document in subversion. From time to time, I > > distribute a pdf. I would like to include the subversion revision number > > in the document. Is there a easy way to do that? > > > > Thanks > > Rainer > > In the preamble: > \usepackage{svn} > \SVN $Revision$ > > In the document, inside a TeX code box: > \SVNRevision > > See also this thread: > http://www.mail-archive.com/lyx-users@lists.lyx.org/msg78371.html > > and: > http://jtauber.com/blog/2006/03/28/subversion_keywords_in_latex_documents/ Thanks, worked well for me. For some reason \SVNRevision produces an empty string with texlive 2007.dfsg.2-1~lenny2 in Debian 5.0, but works as expected in the upcoming Debian 6.0 testing release. Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/
Subversion Revision in LyX Document
Hello, we maintain our LyX document in subversion. From time to time, I distribute a pdf. I would like to include the subversion revision number in the document. Is there a easy way to do that? Thanks Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/
Re: LyX and SVG
Am Montag, 10. Mai 2010 schrieb Vincent van Ravesteijn: > Op 10-5-2010 20:42, Rainer Dorsch schreef: > > Hello, > > > > I was following > > > > http://wiki.lyx.org/Tips/UseInkscapeSVGImages > > > > to setup lyx 1.6.5 with svg support (happy to read that 1.6.6 will > > support it out of the box). > > > > For some reason I get the svg's converted in bitmaps, when I include them > > in pdf. Is that expected? > > > > Here is an example: > > > > http://bokomoko.de/~rd/lyxsvgtest/ > > The test.svg file already looks bitmapped. After removing > "font-family:Sans;", the svg is rendered properly. What do you use to render the svg? In Inkscape it looks rendered properly... Also in firefox and konqueror the svg looks ok. You address the right issue though it remains confusing for me: What does not work (complete file http://bokomoko.de/~rd/lyxsvgtest/drawing.svg ) : Sample text for demonstration What works though (complete file http://bokomoko.de/~rd/lyxsvgtest/drawing3.svg ) : Sample text for demonstration I used Inkscape 0.47 opened the file changed the font, changed it back and saved. I seems I created the svg which is not working with inkscape 0.46. Does anybody understand if the first version is technically not correct? > Does the pdf look better then ? Yes, it does. Thanks, Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 email: rdor...@web.de jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/ signature.asc Description: This is a digitally signed message part.
LyX and SVG
Hello, I was following http://wiki.lyx.org/Tips/UseInkscapeSVGImages to setup lyx 1.6.5 with svg support (happy to read that 1.6.6 will support it out of the box). For some reason I get the svg's converted in bitmaps, when I include them in pdf. Is that expected? Here is an example: http://bokomoko.de/~rd/lyxsvgtest/ This is the pdf I get http://bokomoko.de/~rd/lyxsvgtest/test.pdf This are my settings from preferences # # FORMATS SECTION ## # \format "bmp" "bmp" "BMP" "" "xdg-open" "auto" "" \format "dia" "dia" "DIA" "" "auto" "auto" "vector" \format "fen" "fen" "FEN" "" "auto" "auto" "" \format "fig" "fig" "FIG" "" "auto" "auto" "vector" \format "gif" "gif" "GIF" "" "xdg-open" "auto" "" \format "agr" "agr" "Grace" "" "auto" "auto" "vector" \format "jpg" "jpg" "JPEG" "" "xdg-open" "auto" "" \format "noteedit" "not" "Noteedit" "" "auto" "auto" "vector" \format "pbm" "pbm" "PBM" "" "xdg-open" "auto" "" \format "pdf2" "pdf" "PDF (pdflatex)" "F" "evince" "" "document,vector" \format "pgm" "pgm" "PGM" "" "xdg-open" "auto" "" \format "png" "png" "PNG" "" "xdg-open" "auto" "" \format "ppm" "ppm" "PPM" "" "xdg-open" "auto" "" \format "svg" "svg" "SVG" "" "inkview" "inkscape" "vector" \format "tgif" "obj" "Tgif" "" "auto" "auto" "vector" \format "tiff" "tif" "TIFF" "" "xdg-open" "auto" "" \format "xbm" "xbm" "XBM" "" "xdg-open" "auto" "" \format "xpm" "xpm" "XPM" "" "xdg-open" "auto" "" # # CONVERTERS SECTION ## # \converter "lyx" "html" "python -m elyxer ---splitpart 1 -directory $$r $$i $$o" "" \converter "svg" "eps" "inkscape $$i --export-eps=$$o" "" \converter "svg" "png" "inkscape $$i --export-png=$$o" "" \converter "svg" "pdf" "inkscape --export-area-drawing $$i --export-pdf=$$o" "" \converter "svg" "pdf2" "inkscape --export-area-drawing $$i --export-pdf=$$o" "" # Any input is welcome. Thanks, Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 email: rdor...@web.de jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/ signature.asc Description: This is a digitally signed message part.
Defining new fields within a paragraph
Hello, I would like to define a new "layout rule and code generation rule" for text within a paragraph similar as Style CodeVariable MarginStatic LatexType Command LatexName codevar # standard font definition Font Shape Italic Color Blue EndFont End in a .layout file does for paragraphs. I.e. I would like LyX to generate code like This is an example for using the \codevar{mFreeList} member variable within a paragraph. I want LyX to insert the \codevar{} and format it italic and blue. Can LyX do that or can I just configure complete paragraphs? Thanks, Rainer -- Rainer Dorsch __ Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc=021201
Wrong style file found
Hello, I copied a style file into my document directory, modified it and run lyx on a document, containing the style file. It seems that the search path does contain the document directory at the end and not at the beginning. Do I have the change to change this to the latex default, where the document directory/current directory is searched first? Thanks. Rainer. -- Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart http://www.ra.informatik.uni-stuttgart.de/~rainer/
Re: algorithm float and hyperref
Did you uncomment the hyperref line in the preamble? My files seem to be up to date. *File List* report.cls2001/04/21 v1.4e Standard LaTeX document class size10.clo2001/04/21 v1.4e Standard LaTeX file (size option) fontenc.sty t1enc.def2001/06/05 v1.94 Standard LaTeX file inputenc.sty2001/07/10 v0.99a Input encoding file latin1.def2001/07/10 v0.99a Input encoding file babel.sty2001/03/01 v3.7h The Babel package germanb.ldf2001/01/26 v2.6k German support from the babel system english.ldf2001/04/15 v3.3l English support from the babel system algorithm.sty float.sty2001/11/08 v1.3d Float enhancements (AL) ifthen.sty2001/05/26 v1.1c Standard LaTeX ifthen package (DPC) algorithmic.sty calc.sty1998/07/07 v4.1b Infix arithmetic (KKT,FJ) hyperref.sty2001/11/12 v6.71v Hypertext links for LaTeX keyval.sty1999/03/16 v1.13 key=value parser (DPC) pd1enc.def2001/11/12 v6.71v Hyperref: PDFDocEncoding definition (HO) url.sty1999/03/02 ver 1.4 Verb mode for urls, email addresses, and f ile names hdvips.def2001/11/12 v6.71v Hyperref driver for dvips pdfmark.def2001/11/12 v6.71v Hyperref definitions for pdfmark specials nameref.sty2001/01/27 v2.19 Cross-referencing by name of section Rainer. > Rainer Dorsch wrote: > > > I use the hyperref package as suggested by Herbert and found that it conflicts > > with algorithmic floats, when running it through latex. > > > > The caption of algorithmic floats is brocken, when hyperref is in the > > preamble. I attached an example. In the correct version (without hyperref) > > there is a line above and below the caption. > > > no problems here. try to load hyperref as last package. > Here is my file list, where you can have a look for the versions. > Put a \listfiles at the end of your preamble. > > HErbert > > *File List* > report.cls2001/04/21 v1.4e Standard LaTeX document class > size10.clo2001/04/21 v1.4e Standard LaTeX file (size option) > fontenc.sty >t1enc.def2000/08/30 v1.91 Standard LaTeX file > inputenc.sty2000/07/01 v0.996 Input encoding file > latin1.def2000/07/01 v0.996 Input encoding file >float.sty1999/05/29 v1.2d Float enhancements (AL) > LyXTools.sty2001/07/07 some different tools for better LyX-layouts >color.sty1999/02/16 v1.0i Standard LaTeX Color (DPC) >color.cfg >dvips.def1999/02/16 v3.0i Driver-dependant file (DPC,SPQR) > dvipsnam.def1999/02/16 v3.0i Driver-dependant file (DPC,SPQR) > calc.sty1998/07/07 v4.1b Infix arithmetic (KKT,FJ) > ntheorem.sty1999/12/26 1.18 > hyperref.sty2000/11/05 v6.71a Hypertext links for LaTeX > keyval.sty1999/03/16 v1.13 key=value parser (DPC) > pd1enc.def2000/11/05 v6.71a Hyperref: PDFDocEncoding definition (HO) > url.sty1999/03/02 ver 1.4 Verb mode for urls, email addresses, and f > ile names > hdvips.def2000/11/05 v6.71a Hyperref driver for dvips > pdfmark.def2000/11/05 v6.71a Hyperref definitions for pdfmark specials > algorithmic.sty > ifthen.sty1999/09/10 v1.1b Standard LaTeX ifthen package (DPC) >babel.sty2001/03/01 v3.7h The Babel package > germanb.ldf2001/01/26 v2.6k German support from the babel system > english.ldf2001/02/07 v3.3k English support from the babel system > nameref.sty 2000/05/08 v2.18 Cross-referencing by name of section >test2.out >test2.out > *** > > > -- > http://www.lyx.org/help/ > > -- Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart http://www.ra.informatik.uni-stuttgart.de/~rainer/
Re: algorithm float and hyperref
...I forgot to attache the small example. Rainer. #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass report \begin_preamble \usepackage[ps2pdf]{hyperref} \usepackage{algorithmic} \end_preamble \language american \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 2 \tocdepth 2 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_float alg \layout Caption \lang german \begin_inset LatexCommand \label{alg:zuweisung} \end_inset \noun on RESPINStatKompakt() \layout Standard \lang german 123 \end_float \the_end Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart http://www.ra.informatik.uni-stuttgart.de/~rainer/
algorithm float and hyperref
Hello, I use the hyperref package as suggested by Herbert and found that it conflicts with algorithmic floats, when running it through latex. The caption of algorithmic floats is brocken, when hyperref is in the preamble. I attached an example. In the correct version (without hyperref) there is a line above and below the caption. With tex2pdf it works always. So, is that a latex bug? Thanks. Rainer. -- Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart http://www.ra.informatik.uni-stuttgart.de/~rainer/
Re: pdf
> we are talking about pdf and hyperlinks, so you need at least a > > \usepackage[ps2pdf]{hyperref} > > in the preamble. Than all works well. > that really solves all problems. Is that somehow obvious or should it be added to the lyx tips? Thanks a lot! Rainer. -- Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart http://www.ra.informatik.uni-stuttgart.de/~rainer/
Re:
> Rainer Dorsch wrote: > > > > > Hmm...the code shown in > > > > http://www.lyx.org/help/pdf/pdf.php3#index > > > > results in a compilation error for me. When I run tex2pdf, the compilation > > error is not there, but I do not see the desired effect, that the bookmarks > > link to the correct place. > > > do you have bookstyle? > The attached coed is doing what I want. Is there any lyx support for tocvsec2.sty? Thanks. Rainer. #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass book \begin_preamble \usepackage{tocvsec2} \setcounter{secnumdepth}{-1} \end_preamble \language american \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 2 \tocdepth 2 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Chapter Test \layout Section test2 \layout Section test3 \layout Chapter test4 \layout Section bal \layout Section dxv \layout Chapter Hups \layout Section test2 \layout Section test3 \the_end Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart http://www.ra.informatik.uni-stuttgart.de/~rainer/
Re:
> Rainer Dorsch wrote: > > > > > Hmm...the code shown in > > > > http://www.lyx.org/help/pdf/pdf.php3#index > > > > results in a compilation error for me. When I run tex2pdf, the compilation > > error is not there, but I do not see the desired effect, that the bookmarks > > link to the correct place. > > > do you have bookstyle? > > Yes, I do. Take as an example the attached lyx file. It throws an error with lyx and it compiles with tex2pdf but does not work correctly. Thanks. Rainer. #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass book \language american \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 2 \tocdepth 2 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Standard \latex latex \backslash newpage \layout Standard a \layout Standard \latex latex \backslash newpage \layout Standard b \layout Standard \latex latex \backslash newpage \layout Standard c \layout Standard \latex latex \backslash clearpage \layout Standard \latex latex \backslash phantomsection \layout Standard \latex latex \backslash addcontentsline{toc}{chapter}{Index} \layout Standard \layout Chapter* test \the_end Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart http://www.ra.informatik.uni-stuttgart.de/~rainer/
Supress float caption in table of figures
Hello, I would like to supress the entries of some floats in the table of figures. Can I do this in lyx or do I have to write the complete float code in LaTeX code? Thank you. Rainer.
Longtable increases table number
Hello, float environments like figure and table have their respective counters. If a longtable occurs not within such an environment, it increases the float-counter for tables anyway. A reference document ist at http://www.ra.informatik.uni-stuttgart.de/~rainer/Download/table.lyx The tables are numbered 1, 2, 4 instead of 1, 2, 3. Is that a lyx or a longtable bug? Does anybody know a workaround? Thanks. Rainer. -- Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart http://www.ra.informatik.uni-stuttgart.de/~rainer/
Re: New German Spelling
Nick, thanks for you reply. > Rainer, > > I am not too sure what the ngerman dictionary is but maybe I can be of some > help. The German language was modified recently. The goal was to reduce the number of exceptions in the spelling of words...during a transitional phase both spellings may now be used in official documents. I personally prefer to use the new spelling, which is in ngerman, the german contains the old spelling. > > I am assuming that you are using ispell ? > If you have the ngerman dictionary installed you can get LyX (ispell) to use > this to check the spelling by > > edit->preferences->Lang Opts->Spell checker > > select use alternate language, and type in ngerman > > (If you have the ngerman dictionary installed, you should have a ngerman.hash > file, all of my dictionaries are in /usr/lib/ispell/) > > I hope thats of some help This is what I am doing right now. But I would like to have it as default for all German language documents > > Also why do you want an english dictionary instead of a british one ? > Do you want american spelling ? It seems that I had another problem...I can't reproduce that problem any more. Rainer. > > Nick > > On Fri, 12 Oct 2001 3:30:am, Rainer Dorsch wrote: > > Hi, > > > > I am wondering, if it is possible to tell lyx to use the ngerman dictionary > > by default, if the document language is German. > > > > Also it seems that there is an ibritish, but no ienglish (at least in > > Debian). > > > > Thanks. > > > > Rainer. > > -- > > Nick Burgan > Postgraduate Student > > Active Noise and Vibration Control Group > Department of Mechanical Engineering > University of Adelaide > SA 5005 > AUSTRALIA > > Phone: +61 (0)8 8303 6385 > Fax: +61 (0)8 8303 4367 > > -- Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart http://www.ra.informatik.uni-stuttgart.de/~rainer/
New German Spelling
Hi, I am wondering, if it is possible to tell lyx to use the ngerman dictionary by default, if the document language is German. Also it seems that there is an ibritish, but no ienglish (at least in Debian). Thanks. Rainer. -- Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart http://www.ra.informatik.uni-stuttgart.de/~rainer/
Re: XDM authorization key matches an existing client!
thanks for the report. Someone from the development team pointed out, that the problem will disappear in 1.2.0 for other reasons. Thus I decided to wait for 1.2.0. Rainer. -- Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart http://www.ra.informatik.uni-stuttgart.de/~rainer/
Re: XDM authorization key matches an existing client!
> On Wed, Sep 12, 2001 at 05:10:06PM +0200, Rainer Dorsch wrote: > > > Does anybody know what I am doing wrong? > > no, but xhost +localhost apparently fixes it > No it apparently does not rainer@rai21:~/Managed/Publikationen/Diss$ xhost access control enabled, only authorized clients can connect INET:localhost rainer@rai21:~/Managed/Publikatio nen/Diss$ lyx main.lyx Xlib: connection to ":0.0" refused by server Xlib: XDM authorization key matches an existing client! Error: Couldn't find per display information GS [16317] error 256 E:1 1 S:0 0 Xlib: connection to ":0.0" refused by server
XDM authorization key matches an existing client!
When I open a .lyx document with lyx-1.1.6fix3 I get on a Progeny Debian system the messages: [...] GS [3620] error 256 E:1 1 S:0 0 Xlib: connection to ":0.0" refused by server Xlib: XDM authorization key matches an existing client! Error: Couldn't find per display information GS [3621] error 256 E:1 1 S:0 0 Xlib: connection to ":0.0" refused by server Xlib: XDM authorization key matches an existing client! Error: Couldn't find per display information [...] and all images have render errors. Does anybody know what I am doing wrong? Thanks. Rainer. -- Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: +49-711-7816-215 / Fax: +49-711-7816-288 Breitwiesenstr. 20-22D-70565 Stuttgart
Re: Umlauts in math environment
> > > On Thu, 9 Aug 2001, Andre Poenitz wrote: > > > > one possibility ist to use \text{}. I am not sure whether you > > > need AMS-Math but it works for me. > > > > I doubt LyX will let you enter anything resemling an Umlaut in a math > > box... > > > > Andre' > > > > -- > > André Pönitz . [EMAIL PROTECTED] > > > It works find for me on current SuSE, RedHat and Mandrake Distributions. > The only case where it doesn't work is a Potato-Installation I administer > at school. It also does not work with debian woody... Rainer.
Umlauts in math environment
Hello, I am wondering, if I can use umlauts in a math environment (e.g. in an \mbox{})? I am using lyx1.1.6fix3 Thank you. Rainer.
Re: Class files not installed on the system....
Herbert, thanks for the detailed explanation. But it seems that lyx can't do what I need. I need all the files in one directory (including the latex class files) unpack it and run it through lyx. I will do the replacement by hand for now. Hopefully a later version of lyx will support it (an easy fix would be to be able to specify the documentclass line in latex ocde). Thanks a lot. Rainer. > Rainer Dorsch wrote: > > > > > Rainer Dorsch wrote: > > > > > > > > the ieeetran.cls file is not installed on the system (debian linux) I am using > > > > lyx on. When running latex iwthout lyx, it is no problem to put the file > > > > IEEEtran.cls in the working directory. But lyx seems to have problems, when > > > > running reconfigure, I get > > > > > > > > +checking for document class IEEEtran [IEEEtran]... no > > > > > > > > so I cannot select IEEEtran in Layout->document > > > > > > where do you have installed the ieeetran.cls? > > > > > > > Same directory as .lyx file. > > lyx searches the latex tree when configuring the classes. > put the class-file in something like > /usr/local/texmf/tex/latex/IEEE > or also possible in your home-texdir, often like > ~/.TeX > > Herbert > > > -- > http://www.educat.hu-berlin.de/~voss/lyx/ >
Re: Class files not installed on the system....
> Rainer Dorsch wrote: > > > > the ieeetran.cls file is not installed on the system (debian linux) I am using > > lyx on. When running latex iwthout lyx, it is no problem to put the file > > IEEEtran.cls in the working directory. But lyx seems to have problems, when > > running reconfigure, I get > > > > +checking for document class IEEEtran [IEEEtran]... no > > > > so I cannot select IEEEtran in Layout->document > > where do you have installed the ieeetran.cls? > Same directory as .lyx file. I only need to replace \documentclass[12pt,a4paper,twoside,twocolumn,american]{article} by \documentclass[10pt,twocolumn,american]{IEEEtran} before translating (most important is probably the article by IEEEtran. All the things are in CVS, i.e. I do not even want to change my .lyx directory, everything should be configured in the working directory, in which the .lyx file resides. Rainer. > Herbert > > -- > http://www.educat.hu-berlin.de/~voss/lyx/ > > >
Class files not installed on the system....
Hello, the ieeetran.cls file is not installed on the system (debian linux) I am using lyx on. When running latex iwthout lyx, it is no problem to put the file IEEEtran.cls in the working directory. But lyx seems to have problems, when running reconfigure, I get +checking for document class IEEEtran [IEEEtran]... no so I cannot select IEEEtran in Layout->document Is there any work around for this problem? Thanks. Rainer.
Re: Insert hspace in subfigure
But that does not work, if I want to use it only in one float environment in the document... ...I think I will write the latex code. Thanks. Rainer. > Rainer Dorsch wrote: > > > > can I do soemthing like this in LyX (without typing plain LaTeX)? > > > > \subfigure[...]{\hspace{10bp}\includegraphics[width=1in]{...}\hspace{10bp}} > > in preamble: > > \let\mysubfigure\subfigure > \renewcommand\subfigure[2][]{% > \hspace{10bp}\mysubfigure[#1]{#2}\hspace{10bp}% > } > > > or > > > > \subfigure[...]{\hbox to 92bp{% > > \hfil > > \includegraphics[width=1in]{...}% > > \hfil}} > > nearly the same > > Herbert > > -- > http://www.educat.hu-berlin.de/~voss/lyx/ >
Insert hspace in subfigure
Hello, can I do soemthing like this in LyX (without typing plain LaTeX)? \subfigure[...]{\hspace{10bp}\includegraphics[width=1in]{...}\hspace{10bp}} or \subfigure[...]{\hbox to 92bp{% \hfil \includegraphics[width=1in]{...}% \hfil}} Thanks, Rainer.
Re: lyx 1.1.6fix2 deb package
See also #Unofficial LyX deb ftp://ntama.uni-mainz.de/pub/debian unofficial/ deb-src ftp://ntama.uni-mainz.de/pub/debian unofficial/ > I have just packaged lyx 1.1.6fix2 for my debian/unstable platform. > Feel free to get it at the url > http://www.linfe.it/LInfE-Forum/OpenLab/DebianPackages/unstable/contrib > > Please notice that that package is for debian/unstable only: > Depends: libc6 (>= 2.2.3-1), libforms0.88, libstdc++2.10-glibc2.2, xlibs > (>> 4.0.3) > > regards > > Paolo Pumilia >
Re: [Q]: mathbf
> > I made the observation: > > > > Entering \mathbf{c} in math mode is displayed as written (without backslash). > > > > Reloading the document, a bold font is used for c. > > > > It is nice that lyx is able to display in bold font, but is that the expected > > behavior? > > Don't know. It propably depends on what you expect... > > Seriously: What version are you using? How should it work? > 1.1.6fix2. I would have expected, that whenever I type \mathbf the next letters are bold I noted also, that when I mark something in a formula and use the menu to make it bold, it does not work. I have to select first bold in the menu an then I have to type, then it works. Thanks. Rainer.
Re: [Q]: mathbf
> Rainer Dorsch wrote: > > > > I made the observation: > > > > Entering \mathbf{c} in math mode is displayed as written (without backslash). > > > > Reloading the document, a bold font is used for c. > > > > It is nice that lyx is able to display in bold font, but is that the expected > > behavior? > > yes, you also can toggle bold on/off with ctrl-b in mathmode, too. > Hmm...interesting. It does not work, when you mark a part of a formula and press Crtl-b, but it seem to work, if you do it before entering the bold part of a formula. Thanks. Rainer.
[Q]: mathbf
Hello, I made the observation: Entering \mathbf{c} in math mode is displayed as written (without backslash). Reloading the document, a bold font is used for c. It is nice that lyx is able to display in bold font, but is that the expected behavior? Thanks. Rainer.
[Q] execvp failed
Hello, I made a very strange observation this morning. I have two machines running Debian GNU Linux 2.2 (not necessarily the same packages are installed!) and I compiled lyx1.1.6fix2 for them. On one machine it runs perfectly. On the other I get when I want to view dvi or postscript of a lyx file LyX: execvp failed: No such file or directory LyX: execvp failed: No such file or directory LyX: execvp failed: No such file or directory LyX: execvp failed: No such file or directory LyX: execvp failed: No such file or directory Converting from latex to dvi Running latex The execvp are the strange thing. Can I find out somehow, what lyx is looking for? Since I did not see a real problem in the ps file, I would not mind too much, but what is even more annoying is that when I exit lyx, depending on what I wanted dvi or postscript, I get many many xdvi or gv programs which display the document. On the command line, I see Converting from latex to dvi Running latex File: main This is makeindex, version 2.13 [07-Mar-1997] (using kpathsea). Scanning style file /home/rainer/Managed/Publikationen/Diss/nomencl.ist ..done (10 attributes redefined, 3 ignored). Scanning input file main.glodone (22 entries accepted, 0 rejected). Sorting entriesdone (103 comparisons). Generating output file main.glsdone (50 lines written, 0 warnings). Output written in main.gls. Transcript written in main.ilg. This is BibTeX, Version 0.99c (Web2C 7.3.1) The top-level auxiliary file: main.aux The style file: plain.bst Database file #1: papers.bib Converting from dvi to ps Calling dvips -t a4 -o 'main.ps' 'main.dvi' This is dvips(k) 5.86 Copyright 1999 Radical Eye Software (www.radicaleye.com) ' TeX output 2001.06.26:1115' -> main.ps <8r.enc>. [1] [1] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21 ] [22] [23] [24] [25] [26] [27] [28 ] [29] [30] [31] [32] [33] [34 ] [35] [36] [37] [38 ] [39] [40] [41] [42] [43] [44] Executing command: gv -swap 'main.ps' BadWindow (invalid Window parameter) LyX: Child didn't catch signal 6and died. Too bad. LyX: execvp failed: No such file or directory Converting from latex to dvi Running latex Converting from dvi to ps [repeating many times] I am not sure, if and how the two problems are related, but they occur always at the same time. Does anybody have a clue what could go on here? Rainer
Re: Protecting Math Environments
> Rainer Dorsch wrote: > > > > > \newcommmand{\myMathEnv}{ > > > \begin{anyMathEnv} > > > . all the mathstuff > > > \end{anyMathEnv}% > > > I want to use the formula editor of lyx to enter the formulas. And it inserts > > in the latex file > > > > \( stuff \) > > > > but I need > > > > \protect\( stuff \protect\) > > i don't understand the sense of the second \protect. > this works with the blue box, too It simply does not work without the second protect :-) > > \newcommmand{\myMathEnv}{ > .. the lyx blue mathbox > } ok, something like \protect\myMathEnv{the lyx blue mathbox} might work. I will experiment a little bit with it. Thanks. Rainer.
Re: Protecting Math Environments
> Rainer Dorsch wrote: > > > > I am wondering, if it is possible to protect math environments. This is > > useful, if commands like \addcontentsline with non-robust commands are used. > > i don't know, if i understand your problem well. > > > \newcommmand{\myMathEnv}{ > \begin{anyMathEnv} > . all the mathstuff > \end{anyMathEnv}% > } > > in text > > \addcontentsline{toc}{chapter}{\protect\myMathEnv} > Thanks for the quick reply. I want to use the formula editor of lyx to enter the formulas. And it inserts in the latex file \( stuff \) but I need \protect\( stuff \protect\) So I would need a magic key in the math environment of lyx which protects it. Rainer.
Protecting Math Environments
Hello, I am wondering, if it is possible to protect math environments. This is useful, if commands like \addcontentsline with non-robust commands are used. Thank you. Rainer.
New Environments
Hello, I am using ntheorem.sty which defines a couple of environments for theorems, definitions, etc. Is is possible to include these environments in the layout selection in the top left part of lyx or do I have to write LaTeX code? Thanks. Rainer.
Re: Blue underlined
It was a language problem. Thanks everybody. Rainer.
Blue underlined
Hello, I have a lyx document in which part is underlined by a blue line. I have no idea where it comes from and it does not appear at the output. Can anybody give me a hint? Thanks. Rainer.
Re: i.e.\ serached
> Rainer Dorsch wrote: > > > > in LaTeX I often wrote > > > > i.e.\ something > > > > to avoid a big space after the dot. Is there a lyx equivalent or do I have to > > switch in latex mode > > do a ctrl-space > What is the Latex ~ in LyX? Thanks. Rainer.
i.e.\ serached
Hello, in LaTeX I often wrote i.e.\ something to avoid a big space after the dot. Is there a lyx equivalent or do I have to switch in latex mode? Thanks. Rainer.
Drawings and LyX
Hello, I am wondering, what people think is the best way to handle drawings in LaTeX/Lyx currently. Some years ago, I did this using xfig and exported there as pslatex and imported then these files into latex. But handling two files was never comfortable and I rememeber that I also had to write a script, which patched paths thanks. rainer.
graphics-inset
Hello, the extended features manual says in 3.3.6.3 "A semi-functional insetgraphics exist it in 1.1.6. To use it, type M-x graphics-insert." Does anybody know, if it works for including ps graphics or where more documentation may be found? Thanks. Rainer
Re: "lyxdiff"
Hello, I am sorry for the slow reply, but I was busy during the last days. The original changebar package is available as http://www.ra.informatik.uni-stuttgart.de/~rainer/Download/changebar.tgz the modified script as http://www.ra.informatik.uni-stuttgart.de/~rainer/Download/chbar.sh PLEASE NOTE: THE SCRIPT IS A QUICK HACK STARTING FROM THE ORIGINAL SCRIPT. A LOT WORK WOULD BE NEEDED TO BE REALLY USEFUL. I use the script like this: chbar.sh -d test -r 1.3 date01.lyx where the date01.lyx is compared with release 1.3 of date01.lyx in the CVS. The resulting file is tmp.ps. I think I won't have the time to maintain the script properly, but I could integrate patches until a better solution is found. Rainer. > Hi > > I would at least be interested in giving them a try. (I use CVS with Lyx for all > my notes and articles, and just getting border markers is probably enough > anyway). You could either just e-mail me the files, or tell me where I can find > them. > > Thanks, > > Christian > > Rainer Dorsch wrote: > > > There is a changebar package for latex. I made it working with lyx files (by > > converting the to latex) and cvs. They are in a pretty prototyping stage and I > > didn't use them heavily so far, but were working for the examples I tried. > > > > It just marks the positions were changes were made at the border. > > > > If you want them, please let me know. > > > > Rainer.
Re: "lyxdiff"
There is a changebar package for latex. I made it working with lyx files (by converting the to latex) and cvs. They are in a pretty prototyping stage and I didn't use them heavily so far, but were working for the examples I tried. It just marks the positions were changes were made at the border. If you want them, please let me know. Rainer.
Refernence on subfigure
Hello, I am wondering, if lyx allows to put a label at a subfigure, which is, if referenced, expanded to e.g. fig. 5a). Thanks. Rainer.
Changing column format
Hi, I am wondering, if I can change the column spacing of a talbular environment, which I would do I LaTeX as \begin{tabular}{|@{\,}c@{\,}|@{\,}c@{\,}|@{\,}c@{\,}|@{\,}c@{\,}|@{\,}c@{\,}|@{ \,}c@{\,}|@{\,}c@{\,}|} Thanks. --Rainer.
Summing citations
Does anybody know, if I can convince lyx somehow, to group citations. Eg. LaTeX [1,2] is a ... instead of LaTeX [1][2] is a ... Thanks.
Re: BibTeX and LyX
I think there is a bug in the handling of bibtex references. If I change the Style in the BibTeX dialog within a lyx session, nothing changes. If I leave lyx and enter it again, the change is applied. I am using lyx 1.1.2 from the Debian distribution. Thanks. Rainer. > > is it possible to use bibtex efficiently together with LyX? > > Is this somewhere documented? > it is very easy, ppen: > Insert-> Lists&TOC -> Bibtex references > > Then give in the name of the bibtex-file. > Now you can include references in the text with Insert->Citation Reference. > > Torsten -- Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: 0711-7816-215
BibTeX and LyX
Hi, is it possible to use bibtex efficiently together with LyX? Is this somewhere documented? Thanks. -- Rainer Dorsch Abt. Rechnerarchitektur e-mail:[EMAIL PROTECTED] Uni StuttgartTel.: 0711-7816-215