Algorithm float on more pages
Hi all. I'm using LyX, and I'm stucked in a problem: I'm inserting pseudo-code (with some math elements inside) in a algorithm float. When I print / create a pdf the float it's bigger than the page, but it doesn't automatically "split" itself. Is there a way to tell the float that it's off the border? -- By ZeD
Re: Source code highlighting and indentation
rgheck wrote: >> I have used the "listings" package. It probably knows ada. (I haven't >> used it with lyx though, just with latex.) > There is support for listings in LyX. Use the Insert>Program Listing > environment. Ada is available. as an alternative to the listings package, I suggest texments_: may be not as integrate as the listings in LyX, but I prefer a little more "colorful" approach to the source highlights. .. _texments: http://www.ctan.org/tex-archive/macros/latex/contrib/texments/ -- By ZeD
Re: Can I please have an example of conditional ERT in LyX
Steve Litt wrote: >> I use ifthenelse in my exams. That way I can have one version of >> the exam without solutions, and one with solution, without having to >> have two documents. If you want, I can send you one of my >> exams. > > I want. I want bad! Are you one of his students? :^) -- By ZeD
Re: help me with a layout module, please!
rgheck wrote: >> then I tell lyx that, to generate the pdf, I must run the 3 passes... but > This is documented in the Customization manual. could you please be a little more specific? I read the entire manual, but I cannot find a section where it's exposed how to force certain passes. At the best I found the chapter 8 (external material) but I have not *external* material... (It's all in one single .lyx file) > LyX will generate tex if it thinks it needs to do so. If you want to > convert TeX to something else, you can define a converter for that. the problem is: how can I tell lyx that, using my .module, it will not generate a .pdf (but 2)? normally the workflow is (semplifying a lot) .lyx -> (implicit?) -> .tex -> (pdflatex) -> .pdf I want ,->(pdflatex)-frn.tex->(pdflatex)->-frn.pdf. .lyx->(different?)->.tex++->.pdf ยด--' -- By ZeD
Re: help me with a layout module, please!
Guenter Milde wrote: >>> 2) tell lyx that, to generate the pdf (via pdflatex), it must do 3 >>> passes >>>(pass 0): generate the FILE.tex from FILE.lyx (as all documents, I >>>think) >>>(pass 1): pdflatex FILE.tex (as all documents?) >>>(pass 2): pdflatex FILE-frn.tex (this file is auto-generated!) >>>(pass 3): pdflatex FILE.tex (include the FILE-frn.pdf) >> I did not find any suggestion on the web > This is not easily done currently. There might be a way of (ab)using the > support for literate programming with noweb (as done by sweave support) or > to use an external inset for your purpose. mmm I don't know how "clean" this solution is, but I think I find a way... http://github.com/ZeeD/frontespizio basically I use the "OutputType" directive (no documentation about, I just found this in some .layout files) to tell lyx that I'm *not* gonna create a simple .tex file... then I tell lyx that, to generate the pdf, I must run the 3 passes... but 1) Can I use a custom OutputType? LyX tells me: LyX: Unknown output type `frontispiece' [around line 9 of file ~/.lyx/layouts/frontespizio.module current token: 'frontispiece' context: ''] 2) How can I tell lyx to generate the .tex? Now I use an *ugly* command to convert directly from lyx (with Frontespizio) to pdf: \format "frontispiece" "" "Frontespizio" "" "" "" "document" \converter "frontispiece" "pdflatex" "lyx -e pdflatex \"$$i.lyx\" && pdflatex \"$$o\" && pdflatex \"$$i-fnt.tex\" && pdflatex \"$$o\"" "" -- By ZeD
Re: help me with a layout module, please!
Vito De Tullio wrote: > I need to know if (and how!) is possible to: > 1) force the documentclass (book, article) to use the titlepage ambient. mmm I think this is resolved, using: ClassOptions Other titlepage End > 2) tell lyx that, to generate the pdf (via pdflatex), it must do 3 passes >(pass 0): generate the FILE.tex from FILE.lyx (as all documents, I >think) >(pass 1): pdflatex FILE.tex (as all documents?) >(pass 2): pdflatex FILE-frn.tex (this file is auto-generated!) >(pass 3): pdflatex FILE.tex (include the FILE-frn.pdf) I did not find any suggestion on the web does this make sense? can a .module say something like that to lyx? on http://github.com/ZeeD/frontespizio/ I set up a little git repo to the file, if anyone can help me. -- By ZeD
help me with a layout module, please!
I'm making a small layout module around the package "frontespizio" (http://www.ctan.org/tex-archive/macros/latex/contrib/frontespizio/), but I'm a novice, and I need help. I need to know if (and how!) is possible to: 1) force the documentclass (book, article) to use the titlepage ambient. 2) tell lyx that, to generate the pdf (via pdflatex), it must do 3 passes (pass 0): generate the FILE.tex from FILE.lyx (as all documents, I think) (pass 1): pdflatex FILE.tex (as all documents?) (pass 2): pdflatex FILE-frn.tex (this file is auto-generated!) (pass 3): pdflatex FILE.tex (include the FILE-frn.pdf) -- By ZeD