How to make frontmatter appear in italics in ToC?
Hello LyX-users, I'm using book class (Memoir) and would like to have the frontmatter (abstract, acknowledgments (unnumbered chapter), nom, lof, lot, and toc itself) appear in emphasized/italics font on the Contents page. I don't want the actual chapter titles appear in italics, just in the ToC. I've tried the following hack, which kinda works, first removing LyX's own List of tables, then inserting two TeX-boxes, first a non-contents-listed lot, and then one adding it manually right after: \listoftables* \addcontentsline{toc}{chapter}{\emph{List of tables}} This isn't good enough though, as it messes up the pdf-bookmarks page numbering and doesn't work with LyX's own List of Tables, Nomenclature, or whatever list. And I haven't found any hack for getting the Contents-insert itself in the ToC appear in italics/emphasis. Any ideas would be highly appreciated! Stig
Re: lyx2lyx failing when updating svn
On 2/1/11 7:02 PM, Jose Quesada wrote: Thanks Richard, lyx2lyx was indeed missing in my .lyx. After moving it there this is what I get: Sorry, you want it in /usr/share/lyx/lyx2lyx/, or wherever this is on your system. rh
regression on lyx svn: the table toolbar does not show up automatically when entering a table END
-- Best, -Jose Jose Quesada, PhD. Research scientist, Max Planck Institute, Center for Adaptive Behavior and Cognition, Berlin http://www.josequesada.name/ http://twitter.com/Quesada
Re: PDF (pdflatex) View Missing
Rainer Dorsch web.de> writes: > \format "pdf2" "pdf" "PDF (pdflatex)" "F" "okular" "" "" > \format "pdf4" "pdf" "PDF (tex2pdf)" "" "acroread" "" "" Here is your problem. Those lines should read \format "pdf2" "pdf" "PDF (pdflatex)" "F" "okular" "" "document,vector" \format "pdf4" "pdf" "PDF (tex2pdf)" "" "acroread" "" "document,vector" Most probably you unchecked the "Document" and "Vector graphics" check boxes in Preferences->File Handling->File formats. -- Enrico
Re: [WINDOWS] Python scripts fail
The image files live on my E: drive. I'm able to build a .ps or .dvi without any figure issues, just not a .pdf. Also, I still get a [?] instead of citations in the document after I've added my .bib file to the LyX document using the "LyX: BibTeX Bibliography" dialog box. Thanks! -Gabe On Tue, Feb 1, 2011 at 2:58 PM, Paul A. Rubin wrote: > On 02/01/2011 05:44 PM, Gabriel Kniffin wrote: > >> The -userdir switch as you suggested seems to have fixed the texfiles.py >> failing problem, although now I'm getting a bunch of the following LaTeX >> errors when I try to build a .pdf: >> >> "LaTeX Error: Cannot determine the size of graphic in <...>" >> > That usually means either that the graphic somehow was not copied to the > temp directory or was not properly converted (so, for instance, the source > file is an EPS, LyX tries but fails to convert it to a PDF, and the .tex > file has a link to a nonexistent PDF). If the image files live on a network > server, I suppose you might check whether that's the culprit (by copying > them to E: and adjusting the paths in the LyX file). > > >> Also, the user directory is only set to the E: drive when I open LyX via >> the command prompt using the -userdir switch. Is there a way to make this >> the default setting so whenever I open a .lyx file it uses this switch? Is >> that the start menu hack you mentioned? >> > Yes. > > How do I do that? >> > Right click the icon and click Properties, find the text box containing the > command (I'm on a Linux laptop right now, so I can't quote specifics), and > add the -userdir ... stuff there. If your path contains any spaces, be sure > to enclose it in quotes. > > Another way to do this is to right click the Start button and click Open, > which opens your start menu in Windows Explorer. (At least, this works on > XT; can't swear about Win 7.) Drill down to the folder containing the LyX > icon and do the right click > Properties act there. > > /Paul > > -- Gabriel Kniffin Research Assistant Northwest Electromagnetics and Acoustics Research Laboratory (NEAR-Lab) http://nearlab.ece.pdx.edu/ Electrical and Computer Engineering Dept. Portland State University (503) 725-3813 Lab (360) 521-8772 Mobile
Re: lyx2lyx failing when updating svn
Thanks Richard, lyx2lyx was indeed missing in my .lyx. After moving it there this is what I get: ~/.lyx ♪ Traceback (most recent call last): File "/home/quesada/.lyx/lyx2lyx/lyx2lyx", line 23, in import LyX File "/home/quesada/.lyx/lyx2lyx/LyX.py", line 91, in convert = getattr(__import__("lyx_" + step), mode) File "/home/quesada/.lyx/lyx2lyx/lyx_2_0.py", line 31, in from lyx2lyx_tools import add_to_preamble, insert_to_preamble, \ File "/home/quesada/.lyx/lyx2lyx/lyx2lyx_tools.py", line 64, in from unicode_symbols import unicode_reps File "/home/quesada/.lyx/lyx2lyx/unicode_symbols.py", line 61, in unicode_reps = read_unicodesymbols() File "/home/quesada/.lyx/lyx2lyx/unicode_symbols.py", line 26, in read_unicodesymbols fp = open(os.path.join(pathname.strip('lyx2lyx'), 'unicodesymbols')) IOError: [Errno 2] No such file or directory: '/home/quesada/.lyx/unicodesymbols' Error: Conversion script failed /home/quesada/Dropbox/exist.de/foo.lyx is from a newer version of LyX and cannot be converted by the lyx2lyx script. ~/.lyx ♪ Looks like I'm missing unicodesymbols in my .lyx. Looking for it on the svn folder doesn't render any hit for a file with such a name: ~/projIfollow/lyx-devel ♪ ack unicodesymbols development/scons/scons_manifest.py 1293:unicodesymbols development/tools/convert_kmap.py 19:return ("Usage: %s unicodesymbolsfile inputfile outputfile\n" % prog_name + 20:"or %s unicodesymbolsfile outputfile" % prog_name) 83:" Build the symbol list from the unicodesymbols file and add some hardcoded symbols." 120:def translate_symbol(unicodesymbols, symbol, try_combining = True): 125:for i in unicodesymbols: 132:for i in unicodesymbols: 146:# entry in unicodesymbols 147:combined = translate_symbol(unicodesymbols, u'%s{%s}' % (i[1], translated)) 152:translated = translate_symbol(unicodesymbols, translated, False) 163:def convert(lines, unicodesymbols): 175:# The unicodesymbols file does not include the trailing delimiter {} 177:translated = translate_symbol(unicodesymbols, symbol) 196:unicodesymbols = open(argv[1], 'rb') 199:symbols = readsymbols(unicodesymbols) development/Makefile 348:tools/unicodesymbols.py \ src/mathed/MathFactory.h 37: * mathalpha in the unicodesymbols file. src/tex2lyx/test/test-insets.tex 329:builtin \textasciicircum{} unicodesymbols \j{} user \mycommand{} xx\par 330:builtin \textasciicircum {} unicodesymbols \j {} user \mycommand{} xx\par 332:{} unicodesymbols \j % and a second one src/tex2lyx/tex2lyx.cpp 792:FileName const symbols_path = libFileSearch(string(), "unicodesymbols"); 794:cerr << "Error: Could not find file \"unicodesymbols\"." src/tex2lyx/text.cpp 2765: // try to see whether the string is in unicodesymbols 3216: // try to see whether the string is in unicodesymbols src/LyX.cpp 818:if (!readEncodingsFile("encodings", "unicodesymbols")) src/Paragraph.cpp 927:// in the unicodesymbols file and is something like "\textXXX{}". src/BiblioInfo.cpp 175:// unicodesymbols has things in the form: \"{u}, src/Encoding.cpp 256:CharInfoMap unicodesymbols; 318:CharInfoMap::const_iterator const it = unicodesymbols.find(uc); 319:if (it == unicodesymbols.end() || !it->second.force) 330:CharInfoMap::const_iterator const it = unicodesymbols.find(c); 331:if (it == unicodesymbols.end() || !it->second.force) 362:CharInfoMap::const_iterator const it = unicodesymbols.find(c); 363:if (it == unicodesymbols.end()) 382:// now the ones from the unicodesymbols file 383:CharInfoMap::const_iterator const end = unicodesymbols.end(); 384:CharInfoMap::const_iterator it = unicodesymbols.begin(); 397:CharInfoMap::const_iterator const it = unicodesymbols.find(c); 398:if (it == unicodesymbols.end()) { 425:CharInfoMap::const_iterator const end = unicodesymbols.end(); 426:CharInfoMap::const_iterator it = unicodesymbols.begin(); 447:CharInfoMap::const_iterator const uniend = unicodesymbols.end(); 467:// the prefix of some command in the unicodesymbols file 470:CharInfoMap::const_iterator it = unicodesymbols.begin(); 503:// matching entry in the unicodesymbols file. 574:CharInfoMap::const_iterator const it = unicodesymbols.find(c); 575:if (it != unicodesymbols.end()) { 655:CharInfoMap::const_iterator const it = unicodesymbols.find(c); 656:if (it != unicodesymbols.end()) 664:CharInfoMap::const_iterator const it = unicodesymbols.find(c); 666:if (it == unicodesymbols.end()) 817:// we assume that at least one command is nonempty when using unicodesymbols 819:unicodesymbols[symbol
Re: [WINDOWS] Python scripts fail
On 02/01/2011 05:44 PM, Gabriel Kniffin wrote: The -userdir switch as you suggested seems to have fixed the texfiles.py failing problem, although now I'm getting a bunch of the following LaTeX errors when I try to build a .pdf: "LaTeX Error: Cannot determine the size of graphic in <...>" That usually means either that the graphic somehow was not copied to the temp directory or was not properly converted (so, for instance, the source file is an EPS, LyX tries but fails to convert it to a PDF, and the .tex file has a link to a nonexistent PDF). If the image files live on a network server, I suppose you might check whether that's the culprit (by copying them to E: and adjusting the paths in the LyX file). Also, the user directory is only set to the E: drive when I open LyX via the command prompt using the -userdir switch. Is there a way to make this the default setting so whenever I open a .lyx file it uses this switch? Is that the start menu hack you mentioned? Yes. How do I do that? Right click the icon and click Properties, find the text box containing the command (I'm on a Linux laptop right now, so I can't quote specifics), and add the -userdir ... stuff there. If your path contains any spaces, be sure to enclose it in quotes. Another way to do this is to right click the Start button and click Open, which opens your start menu in Windows Explorer. (At least, this works on XT; can't swear about Win 7.) Drill down to the folder containing the LyX icon and do the right click > Properties act there. /Paul
Re: [WINDOWS] Python scripts fail
The -userdir switch as you suggested seems to have fixed the texfiles.py failing problem, although now I'm getting a bunch of the following LaTeX errors when I try to build a .pdf: "LaTeX Error: Cannot determine the size of graphic in <...>" Also, the user directory is only set to the E: drive when I open LyX via the command prompt using the -userdir switch. Is there a way to make this the default setting so whenever I open a .lyx file it uses this switch? Is that the start menu hack you mentioned? How do I do that? Thanks! -Gabe On Tue, Feb 1, 2011 at 12:57 PM, Paul A. Rubin wrote: > On 02/01/2011 01:42 PM, kniff...@cecs.pdx.edu wrote: > >> The E: drive is a partition of the computer's hard drive. It's the "user" >> drive of my work computer that I, as a user, am free to modify. The C: drive >> is maintained by our IT dept. >> >> It looks like my user directory is on the network. I went to Tools > >> Preferences > Paths but it doesn't look like I can change my user directory >> from there. Any suggestions? >> > Create a directory on E: for your local settings (E:\lyxuser or whatever > you want to call it), then open a command prompt and run 'lyx -userdir > E:\lyxuser' (or whatever path you chose). It should recreate your user > directory. Check your TeX info and/or try to do whatever it was that broke > before (a Bibtex bibliography?). > > If that turns out to be the problem, you can hack the Start menu icon for > LyX to include the -userdir switch. > > /Paul > -- Gabriel Kniffin Research Assistant Northwest Electromagnetics and Acoustics Research Laboratory (NEAR-Lab) http://nearlab.ece.pdx.edu/ Electrical and Computer Engineering Dept. Portland State University (503) 725-3813 Lab (360) 521-8772 Mobile
Re: [WINDOWS] Python scripts fail
On 02/01/2011 01:42 PM, kniff...@cecs.pdx.edu wrote: The E: drive is a partition of the computer's hard drive. It's the "user" drive of my work computer that I, as a user, am free to modify. The C: drive is maintained by our IT dept. It looks like my user directory is on the network. I went to Tools > Preferences > Paths but it doesn't look like I can change my user directory from there. Any suggestions? Create a directory on E: for your local settings (E:\lyxuser or whatever you want to call it), then open a command prompt and run 'lyx -userdir E:\lyxuser' (or whatever path you chose). It should recreate your user directory. Check your TeX info and/or try to do whatever it was that broke before (a Bibtex bibliography?). If that turns out to be the problem, you can hack the Start menu icon for LyX to include the -userdir switch. /Paul
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: [WINDOWS] Python scripts fail
The E: drive is a partition of the computer's hard drive. It's the "user" drive of my work computer that I, as a user, am free to modify. The C: drive is maintained by our IT dept. It looks like my user directory is on the network. I went to Tools > Preferences > Paths but it doesn't look like I can change my user directory from there. Any suggestions? Thanks, -Gabe
Re: lyx2lyx failing when updating svn
On 02/01/2011 01:34 PM, Jose Quesada wrote: Hi, Quite often I have problems with lyx2lyx failing when updating from svn and doing a make install. I've been trying to pinpoint the problem to write a better report, but to no avail. Where should lyx2lyx go normally? does it follow the --prefix? it fails even when I rename my .lyx folder and start the make install from scratch. Any ideas? Workarounds? THanks! It should follow the prefix, but I think we did once have a problem with its not doing so. The workaround would be to copy the lyx2lyx/ directory manually. Richard
lyx2lyx failing when updating svn
Hi, Quite often I have problems with lyx2lyx failing when updating from svn and doing a make install. I've been trying to pinpoint the problem to write a better report, but to no avail. Where should lyx2lyx go normally? does it follow the --prefix? it fails even when I rename my .lyx folder and start the make install from scratch. Any ideas? Workarounds? THanks! -- Best, -Jose Jose Quesada, PhD. Research scientist, Max Planck Institute, Center for Adaptive Behavior and Cognition, Berlin http://www.josequesada.name/ http://twitter.com/Quesada
bug with brackets in subfloat?
I may have discovered a bug, but it may be in LaTeX itself. Steps to reproduce: 1. Create a figure float 2. create a sub-float within it. 3. In the subfloat caption, enter (in math mode): $[A]$, where $ indicates math mode. 4. Compile the file. This results in a LaTeX error that has to due with the right-bracket. If you remove it, things compile just fine. I have attached a very brief LyX file (2.0beta3 format) that illustrates this problem. Is there a known work-around for this problem? Thanks, James subfloat_bug.lyx Description: Binary data
Re: referencing from bibus on linux
On 02/01/2011 05:26 AM, Maas James Dr (MED) wrote: If this is possible, I'm sure it's been covered somewhere! If so could someone please point me in the correct direction? How can I link lyx 1.6.7 on linux to a bibus database for referencing? LyX does not care what you use to manage your references, but you need to export your bibus database in BibTeX format. LyX itself works only with BibTeX files. Richard
Re: Help: email, affiliation, and job title
On 02/01/2011 08:21 AM, Kwame wrote: I'm a newbie to TEX, LaTEX, LyX, etc. I'm using the Doc Class Article and I need help adding the following: Job Title Email Affiliation I've tried \email and \affil and neither worked probably b'cos of the Doc class I'm using but that's the Doc Class I prefer since I'm putting together a very simple document. There are lots of different article classes, and some of them provide commands like these. The fact that your document is simple should not determine what class you use. Rather, choose the class on the basis of what you need it to do. Richard
Help: email, affiliation, and job title
I'm a newbie to TEX, LaTEX, LyX, etc. I'm using the Doc Class Article and I need help adding the following: Job Title Email Affiliation I've tried \email and \affil and neither worked probably b'cos of the Doc class I'm using but that's the Doc Class I prefer since I'm putting together a very simple document. Would appreciate any help. Thanks.
Re: lyx2.0.0beta3 vs. texlive 2010
Guenter Milde wrote: > On 2011-01-31, Neal Becker wrote: >> On Monday 31 January 2011, Marcelo Acuña wrote: >>> > This is fedora 14 using texlive 2010 >>> > package from Jindrich Novy >>> > >>> > >>> > checking for a Latex2e program... >>> > +checking for "latex"... yes > >>> texlive 2010 work very well for me, with all 2.0 alphas and betas and 1.6.8 >>> versions. I have debian lenny. > > Do you run a local TeXLive? Debian comes with texlive 2009 as newest > version. > >> Can you please tell me if you have: >> lrwxrwxrwx 1 root root 6 Jan 16 11:17 /usr/bin/latex -> pdftex > > Yes, this is the Debian setup. With a recent Debian/testing, it is > > lrwxrwxrwx 1 root root 6 18. Okt 11:05 /usr/bin/latex -> pdftex > > > Günter My texlive was corrupt. Cleaned out and reinstalled, now it's working. One surprise. Choosing to view my document opened up firefox. Probably not what I wanted (usually would use okular).
referencing from bibus on linux
If this is possible, I'm sure it's been covered somewhere! If so could someone please point me in the correct direction? How can I link lyx 1.6.7 on linux to a bibus database for referencing? Thanks Jim === Dr. Jim Maas University of East Anglia
Re: lyx2.0.0beta3 vs. texlive 2010
On 2011-01-31, Neal Becker wrote: > On Monday 31 January 2011, Marcelo Acuña wrote: >> > This is fedora 14 using texlive 2010 >> > package from Jindrich Novy >> > >> > >> > checking for a Latex2e program... >> > +checking for "latex"... yes >> texlive 2010 work very well for me, with all 2.0 alphas and betas and 1.6.8 >> versions. I have debian lenny. Do you run a local TeXLive? Debian comes with texlive 2009 as newest version. > Can you please tell me if you have: > lrwxrwxrwx 1 root root 6 Jan 16 11:17 /usr/bin/latex -> pdftex Yes, this is the Debian setup. With a recent Debian/testing, it is lrwxrwxrwx 1 root root 6 18. Okt 11:05 /usr/bin/latex -> pdftex Günter
Re: Can Beamer convert to HTML also?
On 2011-01-31, Steve Litt wrote: > Hi all, > I'm making a Lua presentation for Linux Enthusiasts and Professionals > of Central Florida (http://www.leap-cf.org) to be given on 2/17/2011. > I'd like to make the presentation in Beamer because I think Beamer's > the easiest authoring environment, especially now that I created my > outline to beamer converter. > But because I need to rapidly copy and paste material from the > presentation into source files, I want the presentation to be HTML and > not PDF. Is there an option by which Beamer can be converted to HTML? Do you want a) both PDF and HTML versions or b) just HTML? with a), you could try eLyXer or the native HTML export from LyX 2.0. with b), you could still try the above. But I'd recommend a different source format (e.g. S5). Docutils has S5 and Beamer writers. > Also, is there a way to put source code in Beamer, kind of like lyx-code in > LyX? the listings package (like in LyX). Günter