Re: Letterhead
On Fri, 22 Jul 2011 10:48:28 -0700 "Tim Wescott t...@wescottdesign.com" suggested this: >My question isn't how to make them -- I've figured that out once, I'll >do it again. My question is, once I have the appropriate LaTeX and Lyx >files made up, where can I put them? Ideally, these will go someplace >where they won't get blown away the next time I upgrade Lyx or LaTeX, >but they'll still appear automagically in LyX when I want a template >for a document. In I point LyX to the directory in my home partition. Where I keep all the templates I've created: for meeting minutes, letters with various letterheads and such things. If I need templates that come with LyX, I just place them in that directory on my home partition, tweak them as required and leave them there. So just create a directory, place your templates into that directory and point LyX through to that directory it will look after itself. Each time you want to access a template use and select the one you want. HTH Charlie -- Registered Linux User:- 329524 *** No one can make you feel inferior without your consent. Eleanor Roosevelt *** Debian GNU/Linux - just the best way to create magic -
Re: textpos in lyx
For some reason I can't get \textpos to place anything snugly against the upper left corner of the page -- if set the position to (0,0), it still seems to leave a small amount of space above and to the left. However, with a bit of tweaking I was able to get a horizontal rule the size of your image to center pretty well (perhaps not quite perfectly). The hacked LyX file is below. Paul #LyX 2.0 created this file. For more info see http://www.lyx.org/ \lyxformat 413 \begin_document \begin_header \textclass article \begin_preamble \usepackage[absolute]{textpos} \end_preamble \use_default_options true \maintain_unincluded_children false \language english \language_package default \inputencoding auto \fontencoding global \font_roman default \font_sans default \font_typewriter default \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \paperfontsize default \spacing single \use_hyperref false \papersize default \use_geometry true \use_amsmath 1 \use_esint 1 \use_mhchem 1 \use_mathdots 1 \cite_engine basic \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \use_refstyle 1 \index Index \shortcut idx \color #008000 \end_index \leftmargin 3cm \topmargin 2cm \rightmargin 3cm \bottommargin 2cm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \paragraph_indentation default \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \html_math_output 0 \html_css_as_file 0 \html_be_strict false \end_header \begin_body \begin_layout Standard \begin_inset ERT status open \begin_layout Plain Layout \backslash newlength{ \backslash temp} \backslash setlength{ \backslash temp}{ \backslash parindent} \backslash setlength{ \backslash parindent}{0pt} \backslash begin{textblock*}{11cm}[0,0](5cm,0cm) \end_layout \end_inset \begin_inset CommandInset line LatexCommand rule offset "0ex" width "11cm" height "4cm" \end_inset \begin_inset ERT status open \begin_layout Plain Layout \backslash end{textblock*} \backslash setlength{ \backslash parindent}{ \backslash temp} \end_layout \end_inset \end_layout \begin_layout Standard Here is some text, hopefully indented. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah \end_layout \begin_layout Standard This starts another paragraph. \end_layout \end_body \end_document
Re: Letterhead
On Fri, Jul 22, 2011 at 8:05 PM, Rich Shepard wrote: >> My question isn't how to make them -- I've figured that out once, I'll do >> it again. My question is, once I have the appropriate LaTeX and Lyx files >> made up, where can I put them? > > Second shelf from the top. > For a more practical place, :) just go ahead and create a Templates folder in your Home dir, and create a bookmark for it in your favourite file manager, and that should do it. Liviu
Re: LyX causes Acrobat Reader Freeze (?)
On Fri, Jul 22, 2011 at 8:17 PM, Paul A. Rubin wrote: > I also searched for messages about Reader freezing on AMD64 and came up > empty, which is consistent with it behaving properly when I run it outside > LyX. > > So the mystery remains. > Have you tried reinstalling acroread + removing ~/.adobe/Acrobat/ (consider backing up first)? You may also experiment with installing .deb files of earlier versions, say 9.4.1. But I'm starting to run out of ideas. Regards Liviu
Re: LyX causes Acrobat Reader Freeze (?)
Liv, Thanks for the responses. On 07/21/2011 06:02 PM, Liviu Andronic wrote: On Thu, Jul 21, 2011 at 11:44 PM, Paul Rubin wrote: No, this is on the first compilation (as well as on subsequent compilations). Also, in all cases Reader is closed at the time I do View> PDF (pdflatex); I'm not trying to reload a PDF while a previous version is open for display. I just verified that the problem does *not* occur on my laptop, which is the same OS, same versions of LyX and Acrobat Reader, but a 32 bit version of the OS and two cores (the bug occurs on a box with a 64 bit version of the OS and four cores). I really don't know but it may happen that acroread, being closed-source, ships only 32-bit binaries and that something funny happens on your 64-bit system. The acroread.desktop file (on both the 32-bit laptop and 64-bit desktop) indicates that the architecture is both i386 and amd64. However, I would also investigate how acroread is being launched (in Prefs> File types) on both systems, In both cases, it's launched via /usr/bin/acroread, which points to /opt/Adobe/Reader9/bin/acroread. and I would also try manually launching acroread on exported PDF files. That works fine (as does manually running acroread against the PDF output file in the LyX buffer directory). I've also verified, on the AMD64 machine, that all versions of View > PDF (dvipdfm, pdflatex and ps2pdf) result in Reader freezing. I ran LyX with -dbg any but found nothing interesting in the output. I tried both xdg-open and acroread as the commands. In both cases, all the debug output shows is: ../../src/Format.cpp(318): Executing command: xdg-open "/tmp/lyx_tmpdir.TJ3795/lyx_tmpbuf2/newfile1.pdf" ../../src/Buffer.cpp(375): Buffer::~Buffer() which looks correct to me. I also searched for messages about Reader freezing on AMD64 and came up empty, which is consistent with it behaving properly when I run it outside LyX. So the mystery remains. Paul
Re: Letterhead
On Fri, 22 Jul 2011, Tim Wescott wrote: I've recently switched from doing most of my documents in OpenOffice to Lyx. I like it, but (aside from portability) the one thing I'm really missing is standard forms. I'm currently using the blank 'article' or 'letter' style in Lyx, but I'd really like to have real letterhead, that automatically puts my company logo & contact information into my documents. Tim, Use the KOMA-letter2 class. My question isn't how to make them -- I've figured that out once, I'll do it again. My question is, once I have the appropriate LaTeX and Lyx files made up, where can I put them? Second shelf from the top. Ideally, these will go someplace where they won't get blown away the next time I upgrade Lyx or LaTeX, but they'll still appear automagically in LyX when I want a template for a document. I designed my business letterhead using the KOMA-letter2 class. The logo and address are a .pdf file that is placed at the top of the page. I also scanned my signature (as a .jpg) file and it's included with all my letters. It all stays because the .pdf, .jpg, and .sty files aren't affected by LyX or LaTeX changes. Actually, I'm lazy. When I want a new letter I copy the .lyx file of an existing one to the appropriate directory and filename, then change to suit the needs. This way I don't need to remember anything about the non-intuitive sequence of environments or where the letterhead and signature files are to be found. :-) Rich
Letterhead
I have a system administration question. It's probably as much a LaTeX question as a Lyx on, and maybe even some Linux sysadmin thrown in for good measure, but here it is: I've recently switched from doing most of my documents in OpenOffice to Lyx. I like it, but (aside from portability) the one thing I'm really missing is standard forms. I'm currently using the blank 'article' or 'letter' style in Lyx, but I'd really like to have real letterhead, that automatically puts my company logo & contact information into my documents. My question isn't how to make them -- I've figured that out once, I'll do it again. My question is, once I have the appropriate LaTeX and Lyx files made up, where can I put them? Ideally, these will go someplace where they won't get blown away the next time I upgrade Lyx or LaTeX, but they'll still appear automagically in LyX when I want a template for a document. Suggestions? -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design.
Re: LyX causes Acrobat Reader Freeze (?)
I find Okular (under ubuntu) to be a better pdf viewer-- it updates itself each time you compile the Lyx file, is fast and just works great. EK On 07/21/2011 05:36 PM, Liviu Andronic wrote: On Thu, Jul 21, 2011 at 9:37 PM, Paul A. Rubin wrote: Hi all, I just ran into a bug, but I'm not sure who the culprit is. The setup is LyX 2.0.0 and Acrobat Reader 9 (specifically 9.4.2-0natty1 on Mint 11 Katya (forked from Ubuntu Natty). If I create a document of more than one page in LyX (I've tested both article and beamer classes, both new and old documents) and preview it using pdflatex, Acrobat Reader freezes on the first page (no scroll bars, no reaction to any inputs) until I force-quit it. I assume that this is on 2nd and subsequent compilations. When it is on the first compilation, acroread doesn't freeze, right? If this is the case, then it's a bug in acroread: it doesn't automatically reload a PDF document when it has been resaved to disk. Try File> Reload (or similar) to see if it solves the problem. Otherwise, consider using Evince, and try acroread only before submitting. Regards Liviu This happens whether using xdg-open or telling LyX directly to use acroread. Previewing does not freeze Evince. Once I force-quit Reader, I can open the PDF sitting in the temporary directory in Reader and no freeze occurs, so the document itself is not defective. (Acrobat Reader appears to be configured to allow only one instance at a time, so I can't open the PDF in a second instance while the first is frozen.) I didn't see anything about this in Trac or on the list. FWIW, the system is 64-bit and the PC is quad core (AMD). Any clues what's going on? Thanks, Paul -- Ehud Kaplan, Ph.D. Jules and Doris Stein /Research to Prevent Blindness/ Professor *Director*, The laboratory of Visual & Computational Neuroscience *Director*, Center for Excellence in Computational & Systems Neuroscience /Friedman Brain Institute/ Departments of Neuroscience, Ophthalmology, Structural & Chemical Biology, The Mount Sinai School of Medicine One Gustave Levy Place, NY, NY, 10029
Re: Unable to get lyx-2.0 to work properly on a Macbook Pro
Am 22.07.2011 um 14:40 schrieb Anand Rangarajan: > I have a Macbook Pro running Snow Leopard. lyx-1.6.10 works fine on it. To > install it, I did the usual thing of moving the LyX App to Applications and > running the installer which created a LyX-1.6 directory and copies layouts > etc to it. lyx-1.6.10 is able to use the article class and can generate pdf > output. > > This is not the case with lyx-2.0.0. I dropped the application into the > Application directory naming it lyx-2.0.0 and since there was no additional > installer that I could find, I copied the contents of lyx-1.6 into a new > lyx-2.0 directory. lyx-2.0 starts but complains that no article class can be > found and therefore no output can be generated. How do I fix this? Please, open the 2.0.0 disk image. You'll find a folder Documents. Open the Readme.pdf in there and read the advice how to proceed. If this does not help try Reconfigure in the LyX menu. (You have some TeX-engine on your laptop already I presume) Stephan
Unable to get lyx-2.0 to work properly on a Macbook Pro
I have a Macbook Pro running Snow Leopard. lyx-1.6.10 works fine on it. To install it, I did the usual thing of moving the LyX App to Applications and running the installer which created a LyX-1.6 directory and copies layouts etc to it. lyx-1.6.10 is able to use the article class and can generate pdf output. This is not the case with lyx-2.0.0. I dropped the application into the Application directory naming it lyx-2.0.0 and since there was no additional installer that I could find, I copied the contents of lyx-1.6 into a new lyx-2.0 directory. lyx-2.0 starts but complains that no article class can be found and therefore no output can be generated. How do I fix this? Anand
Re: Problem with the combination of LyX and Bibliographix
On 07/22/2011 05:11 AM, Peter Kohlert wrote: > Hello, > > does anyone else use the bibliography software Bibliographix 8? > It creates temporary "keys" for each source (in the form of [=238 - > Ehring 2008 Characteristics of e...=]) that you place in your text > where you want to cite the source. Later, when you want Bibliographix > to generate the list of references, it reads the .lyx file and > searches the document for the keys which it then replaces with > formatted sources (and also creates a separate .tex file containing > all references). The document with the replaced keys is saved as a new > .lyx file. > > My problem is that for a small percentage of my sources not only the > keys but also some of the text around them (one or multiple words) > gets deleted. Those keys also just get deleted and not replaced with > the formatted source. Of my >300 sources in the document this concerns > more than 15 sources in different places. Of course, I can correct > them manually but that takes time and I might overlook something. > There must be something special about the affected keys themselves or > their positions in the document but I don't know what. > > I already wrote the Bibliographix people but they didn't have a > solution for me, just the suggestion to view the LyX source code for > "Bx" functional characters which may be causing the problem. But I > don't know what those are. > > When I gave the affected keys a color the text around them didn't get > deleted anymore but the keys still weren't replaced, just removed. > > Does anyone have an idea what may be causing the problem? > It sounds to me like a bug in that software, something like a bad regular expression that is catching too much text. FYI, I'm guessing the "functional characters" are something like the "[=" and "=]" that seem to surround these citations. FWIW, as well, this sounds like a needlessly complicated system. Why not just use a BibTeX editor, or have this program export a BibTeX file, and use that for the references? If you ultimately need a file that has just those references, then you can use the aux2bib program to make one. Richard
Problem with the combination of LyX and Bibliographix
Hello, does anyone else use the bibliography software Bibliographix 8? It creates temporary "keys" for each source (in the form of [=238 - Ehring 2008 Characteristics of e...=]) that you place in your text where you want to cite the source. Later, when you want Bibliographix to generate the list of references, it reads the .lyx file and searches the document for the keys which it then replaces with formatted sources (and also creates a separate .tex file containing all references). The document with the replaced keys is saved as a new .lyx file. My problem is that for a small percentage of my sources not only the keys but also some of the text around them (one or multiple words) gets deleted. Those keys also just get deleted and not replaced with the formatted source. Of my >300 sources in the document this concerns more than 15 sources in different places. Of course, I can correct them manually but that takes time and I might overlook something. There must be something special about the affected keys themselves or their positions in the document but I don't know what. I already wrote the Bibliographix people but they didn't have a solution for me, just the suggestion to view the LyX source code for "Bx" functional characters which may be causing the problem. But I don't know what those are. When I gave the affected keys a color the text around them didn't get deleted anymore but the keys still weren't replaced, just removed. Does anyone have an idea what may be causing the problem? Thanks, Peter