Re: General Question
On 18.05.2010, at 17:02, RIchard Heck wrote: > > Sending this to user's, too > > On 05/18/2010 10:24 AM, Wes Lakenan wrote: >> >> Hi, >> >> My company is looking into switching from MS Word to a less stressful >> program to create textbook-like binders. My company is a government >> contractor that teaches program management courses that utilize both printed >> text and PowerPoint presentations. Right now, we create PowerPoint files >> and copy/paste them into a Word document. This allows the students to >> follow along with the printed text and use the inserted PowerPoint slides to >> follow the presentation. However, every time a slide is changed or deleted, >> every slide needs to be reinserted. Is it possible to insert individual >> slides throughout the document one by one? I appreciate any help you can >> give me. >> > I have only a very vague sense what you are trying to do, but I think this > kind of thing would be possible. Is the idea that the slides from the > presentation appear as images in the text, so that the student can see them > there with the text? > > If so, then I would think the workflow could look like this. You create two > separate documents: a LyX document for the text, and a presentation document, > for which you could use OpenOffice Impress or LyX itself, via the Beamer > class, or you could stick with PowerPoint. You print the presentation > document as a PDF and then use something like pdftoppm to convert the pages > of the pdf to images. The images themselves can then be inserted into the LyX > document in the usual way. Since all of this is just running a bunch of > programs, it could all be automated, even, though you might have to check the > image names manually, as they could change if you'd added or removed pages. It's even easier than that as LyX/Latex (\includegraphics) can directly embed a certain page of a PDF file as graphics. The general idea is to have the slides as external material that is *referenced from* the textbook document instead of *copied into* it, so that whenever a silde changes, it also changes in the textbook. Note: While I surely would like to convince you to use LyX, this should be possible with Word as well (at least it used to be possible ten years ago). Daniel
Re: General Question
Sending this to user's, too On 05/18/2010 10:24 AM, Wes Lakenan wrote: Hi, My company is looking into switching from MS Word to a less stressful program to create textbook-like binders. My company is a government contractor that teaches program management courses that utilize both printed text and PowerPoint presentations. Right now, we create PowerPoint files and copy/paste them into a Word document. This allows the students to follow along with the printed text and use the inserted PowerPoint slides to follow the presentation. However, every time a slide is changed or deleted, every slide needs to be reinserted. Is it possible to insert individual slides throughout the document one by one? I appreciate any help you can give me. I have only a very vague sense what you are trying to do, but I think this kind of thing would be possible. Is the idea that the slides from the presentation appear as images in the text, so that the student can see them there with the text? If so, then I would think the workflow could look like this. You create two separate documents: a LyX document for the text, and a presentation document, for which you could use OpenOffice Impress or LyX itself, via the Beamer class, or you could stick with PowerPoint. You print the presentation document as a PDF and then use something like pdftoppm to convert the pages of the pdf to images. The images themselves can then be inserted into the LyX document in the usual way. Since all of this is just running a bunch of programs, it could all be automated, even, though you might have to check the image names manually, as they could change if you'd added or removed pages. Richard
Re: General Question
On 5/18/2010 10:31 AM, Pavel Sanda wrote: Wes Lakenan wrote: My company is looking into switching from MS Word to a less stressful program to create textbook-like binders. My company is a government contractor that teaches program management courses that utilize both printed text and PowerPoint presentations. Right now, we create PowerPoint files and copy/paste them into a Word document. This allows the students to follow along with the printed text and use the inserted PowerPoint slides to follow the presentation. However, every time a slide is changed or deleted, every slide needs to be reinserted. Is it possible to insert individual slides throughout the document one by one? I appreciate any help you can give me. Why do the unchanged slides need to be reinserted? Is it because the slides are numbered and the numbers have changed? LyX will certainly let you insert individual images (which presumes that you have exported each slide to an image file). I'm not aware of any method of using DDE with LyX to automatically import linked slides from a PPT show (which does not preclude there being one). How wedded are you to PowerPoint? You might take a look at beamer, which produces presentations in PDF files. There are a couple of examples on the wiki at http://wiki.lyx.org/Examples/Beamer. I mention beamer because it allows you to generate a presentation, handouts and optionally a document (article) from a single source file. If you use the article mode, you can specify that selected slides be inserted at specific locations. /Paul
Re: General Question
Wes Lakenan wrote: > Hi, hi, this question belongs to lyx users list and i'm forwarding it there, cheers, pavel > > My company is looking into switching from MS Word to a less stressful > program to create textbook-like binders. My company is a government > contractor that teaches program management courses that utilize both printed > text and PowerPoint presentations. Right now, we create PowerPoint files > and copy/paste them into a Word document. This allows the students to > follow along with the printed text and use the inserted PowerPoint slides to > follow the presentation. However, every time a slide is changed or deleted, > every slide needs to be reinserted. Is it possible to insert individual > slides throughout the document one by one? I appreciate any help you can > give me. > > > > > > Wes Lakenan > > Colleague Consulting > > 301- 277-0255 x105 > > >
Re: Tables - general question
Vaclav Smidl wrote: I had the impression that \minipage is an improved (robust) \parbox... The footnotes are example of a difference (improvement) The latex help says: A \parbox command is used for a parbox containing a small piece of text, with nothing fancy inside. In particular, you shouldn't use any of the paragraph-making environments inside a \parbox argument. For larger pieces of text, including ones containing a paragraph-making environment, you should use a minipage environment. So, I understand that it is better to use minipage but from my practical observation: it works even without it... the main difference is that the minipage is an environment and the parbox not. This has some conclusions, e.g. using of \verb Herbert
Re: Tables - general question
Herbert Voss wrote: > oh sorry, cut'n paste ... :-( > Should be [ snip...] Got it. > this is the style, where you do not need the additional \vspace > at the end. > > the bug is another one: > when I insert Format->Paragraph->Space-After->User defined a > length like \normalbaselineskip and then ok, LyX makes > this to \vspace{0}! This is doubled wrong. At first it short > be \vspace{0pt} or with any other unit and second why is a > a length with a name not accepted? Ok, I see this too. I guess that the probalem is here, in setVSpaceFromWidgets in QParagraph.C: case 6: string s; string const length = trim(value); if (isValidGlueLength(length)) { s = length; } else if (!length.empty()){ string u = trim(unit); u = subst(u, "%%", "%"); s = length + u; } space = VSpace(LyXGlueLength(s)); break; } Apparently isValidGlueLength isn't clever enough to understand your length. Thereafter, the fall back creates an unholy combination of "\normalbaselineskip" + "sp" so that the VSpace constructor has no hope in hell of doing anything with it. However, I think that the fundamental problem is that the parser that is used to translate your string into a LyXGlueLength isn't powerful enough to cope with your LaTeX skills. Could you file a bug report on bugsilla please? -- Angus
Re: Tables - general question
Angus Leeming wrote: Hmmm. Your file doesn't compile, Herbert. Let's fix that first. I find that changing "\newenvironment{LyXitemize}{%", above to "\newenvironment{LyXitemize*}{%" makes latex happy. Is that what you mean? oh sorry, cut'n paste ... :-( Should be Style Itemize* CopyStyle Itemize LatexName LyXitemize Preamble \usepackage{mdwlist} \newenvironment{LyXitemize}{% [EMAIL PROTECTED] \begin{itemize*}% }{\vspace{-\normalbaselineskip}% \end{itemize*}} EndPreamble End this is the style, where you do not need the additional \vspace at the end. the bug is another one: when I insert Format->Paragraph->Space-After->User defined a length like \normalbaselineskip and then ok, LyX makes this to \vspace{0}! This is doubled wrong. At first it short be \vspace{0pt} or with any other unit and second why is a a length with a name not accepted? Herbert
Re: Tables - general question
Herbert Voss wrote: > Angus Leeming wrote: > >> Tune the appearence on the lyx screen to suit. If you don't care about >> that, then you may even be able to whittle it down to: >> >> Try adding an "Itemize*" environment to layouts/stdlists.inc. Eg >> (untested): >> >> # Itemize style definition >> Style Itemize* >> CopyStyle Itemize >LatexName LyXitemize* >Preamble > \usepackage{mdwlist} > \newenvironment{LyXitemize}{% >[EMAIL PROTECTED] >\begin{itemize*}% > }{\end{itemize*}} >EndPreamble > End > > > There seems to be a bug in LyX that i cannot insert a > unser defined length after a paragraph like > -\normalbaselineskip. It is set to 0, which is wrong > as value and wrong in a way that my input isn't used. > > LyX 1.3.4 qt > > So there is a need for ERT ... very bad! > See example, works only with the above layout. Hmmm. Your file doesn't compile, Herbert. Let's fix that first. I find that changing "\newenvironment{LyXitemize}{%", above to "\newenvironment{LyXitemize*}{%" makes latex happy. Is that what you mean? Angus \documentclass[10pt,twoside,ngerman]{article} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \setcounter{secnumdepth}{4} \setcounter{tocdepth}{4} \usepackage{array} \makeatletter \providecommand{\tabularnewline}{\\} \usepackage{mdwlist} \newenvironment{LyXitemize*}{% [EMAIL PROTECTED] \begin{itemize*}% }{\end{itemize*}} \usepackage{babel} \makeatother \begin{document} \begin{tabular}{|p{3cm}|p{4cm}|} \hline \begin{LyXitemize*} \item one \item two \item three \end{LyXitemize*} & \begin{LyXitemize*} \item four and six \item seven and eight \item nine and teen \end{LyXitemize*} \tabularnewline \hline \end{tabular} \end{document}
Re: Tables - general question
On Wednesday 21 July 2004 12:31, Herbert Voss wrote: > Vaclav Smidl wrote: > > > My point was that if you specify the width of a column in a table, you > > can insert the same stuff as in parbox. > > the behaviour of footnotes is different and the vertival space > for the first line also. > > > I agree, that you can do much more in the minipage... > > what? > I had the impression that \minipage is an improved (robust) \parbox... The footnotes are example of a difference (improvement) The latex help says: A \parbox command is used for a parbox containing a small piece of text, with nothing fancy inside. In particular, you shouldn't use any of the paragraph-making environments inside a \parbox argument. For larger pieces of text, including ones containing a paragraph-making environment, you should use a minipage environment. So, I understand that it is better to use minipage but from my practical observation: it works even without it...
Re: Tables - general question
Vaclav Smidl wrote: When you fix the column width, each cell is set as a \parbox, so there is no need to use minipage. (see attachment) However, the resulting .ps is slightly different (extra vspace at the end of the second cell)... I don't see any \parbox in the latex export of the example, but \begin{tabular}{|m{5cm}|m{5cm}|c|c|c|} So this is *not* a way to create a \parbox without ERT. Sorry, I did not mean this is a way to create parbox, it is created by the tabular enviroment. Namely, m{wd} is just vertically centered p{wd} which: " p{wd} - Produces a column which can be multiple lines, with each item typeset in a parbox of width wd." p{wd} ist the same as \parbox[t]{wd}... m{wd} ... \parbox[c]{wd}... b{wd} ... \parbox[b]{wd}... My point was that if you specify the width of a column in a table, you can insert the same stuff as in parbox. the behaviour of footnotes is different and the vertival space for the first line also. I agree, that you can do much more in the minipage... what? Herbert
Re: Tables - general question
Jean-Pierre Chretien wrote: To conclude, it's not necessary to insert a minipage, unless you plan to format things in a way only allowed by minipage environment. you _always_ need a minipage, when you insert a list environment like description, itemite a.s.o. With a parbox you'll get an additional vertical space ... Herbert
RE: Tables - general question
> >> > >> > >> Onto aesthetics now! > > Try adding an "Itemize*" environment to layouts/stdlists.inc. Eg > (untested): > > # Itemize style definition > Style Itemize* > MarginStatic > LatexType Item_Environment > LatexName itemize* > NextNoIndent 1 > LeftMarginMMN > LabelSep xx > ItemSep 0.2 > TopSep0.7 > BottomSep 0.7 > ParSep0.3 > Align Block > AlignPossible Block, Left > LabelType Static > LabelString * > End This works fine! Just needs: \usepackage{array} \usepackage{mdwlist} added to my preamble Thanks Angus Rob S
Re: Tables - general question
> >>When you fix the column width, each cell is set as a \parbox, so there is > >> no need to use minipage. (see attachment) However, the resulting .ps is > >> slightly different (extra vspace at the end of the second cell)... > > I don't see any \parbox in the latex export of the example, but > \begin{tabular}{|m{5cm}|m{5cm}|c|c|c|} > So this is *not* a way to create a \parbox without ERT. Sorry, I did not mean this is a way to create parbox, it is created by the tabular enviroment. Namely, m{wd} is just vertically centered p{wd} which: " p{wd} - Produces a column which can be multiple lines, with each item typeset in a parbox of width wd." from: http://www.csit.fsu.edu/~mimi/tex/latex/ltx-68.html My point was that if you specify the width of a column in a table, you can insert the same stuff as in parbox. > > In fact I began by patching a minipage by itself, > and the widthcontrol problem drove me to add a table columnwidth. > > To conclude, it's not necessary to insert a minipage, unless you plan > to format things in a way only allowed by minipage environment. I agree, that you can do much more in the minipage... V.
Re: Tables - general question
Angus Leeming wrote: Tune the appearence on the lyx screen to suit. If you don't care about that, then you may even be able to whittle it down to: Try adding an "Itemize*" environment to layouts/stdlists.inc. Eg (untested): # Itemize style definition Style Itemize* CopyStyle Itemize LatexName LyXitemize* Preamble \usepackage{mdwlist} \newenvironment{LyXitemize}{% [EMAIL PROTECTED] \begin{itemize*}% }{\end{itemize*}} EndPreamble End There seems to be a bug in LyX that i cannot insert a unser defined length after a paragraph like -\normalbaselineskip. It is set to 0, which is wrong as value and wrong in a way that my input isn't used. LyX 1.3.4 qt So there is a need for ERT ... very bad! See example, works only with the above layout. Herbert #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \end_preamble \language ngerman \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \paperwidth 17cm \paperheight 22cm \leftmargin 1.2cm \topmargin 1.4cm \rightmargin 1.7cm \bottommargin 1.4cm \headsep 1cm \secnumdepth 4 \tocdepth 4 \paragraph_separation indent \defskip medskip \quotes_language german \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Standard \begin_inset Tabular \begin_inset Text \layout Itemize* one \layout Itemize* two \layout Itemize* three \end_inset \begin_inset Text \layout Itemize* four and six \layout Itemize* seven and eight \layout Itemize* nine and teen \end_inset \end_inset \the_end
RE: Tables - general question
Rob S wrote: >> >> >> Onto aesthetics now! >> > > I've just delved into Herbert V's tips n tricks page on tables: > > http://www.texnik.de/table/Examples/examples.phtml#center > > Two examples here show the itemize environment in a table. > > Q. How can I change from Lyx creating \begin{itemize} to > \begin{itemize*}? > > The later it seems, from Herbet's page anyway, produces a "tighter" > output - > > (Please forgive my zero LaTeX knowledge!!) Try adding an "Itemize*" environment to layouts/stdlists.inc. Eg (untested): # Itemize style definition Style Itemize* MarginStatic LatexType Item_Environment LatexName itemize* NextNoIndent 1 LeftMarginMMN LabelSep xx ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left LabelType Static LabelString * End Tune the appearence on the lyx screen to suit. If you don't care about that, then you may even be able to whittle it down to: Style Itemize* CopyStyle Itemize MarginStatic LatexName itemize* LabelType Static End Experiment! -- Angus
Re: Tables - general question
>>From: Vaclav Smidl <[EMAIL PROTECTED]> >>To: [EMAIL PROTECTED] >>Subject: Re: Tables - general question >>Date: Wed, 21 Jul 2004 11:48:31 + >> >>> >>> >>> I do not know. Possibly you can use a minipage for that. >>> >> >>> >>Again, I'll have a look at this method as well. >>> >>> It works, see attached example. >>> You need to set the column width if you want the minipage width be >>> a % of the column, and to get a proper LyX layout: compare col 1 and 2. >> >>When you fix the column width, each cell is set as a \parbox, so there is no >>need to use minipage. (see attachment) However, the resulting .ps is slightly >>different (extra vspace at the end of the second cell)... I don't see any \parbox in the latex export of the example, but \begin{tabular}{|m{5cm}|m{5cm}|c|c|c|} So this is *not* a way to create a \parbox without ERT. In fact I began by patching a minipage by itself, and the widthcontrol problem drove me to add a table columnwidth. To conclude, it's not necessary to insert a minipage, unless you plan to format things in a way only allowed by minipage environment. -- Jean-Pierre
RE: Tables - general question
> > > Onto aesthetics now! > I've just delved into Herbert V's tips n tricks page on tables: http://www.texnik.de/table/Examples/examples.phtml#center Two examples here show the itemize environment in a table. Q. How can I change from Lyx creating \begin{itemize} to \begin{itemize*}? The later it seems, from Herbet's page anyway, produces a "tighter" output - (Please forgive my zero LaTeX knowledge!!) Rob S
RE: Tables - general question
> When you fix the column width, each cell is set as a \parbox, so there is > no > need to use minipage. (see attachment) However, the resulting .ps is > slightly > different (extra vspace at the end of the second cell)... Onto aesthetics now! In the example, row 1 height is determined by the contents of R1 C2. In the viewers/printed page R1C1 "looks" far nicer, better use of cell padding. I can get the same using effect using [\vspace{0.3cm}] in R1C2 as per attached. Is this the only way? Rob S test_mini.lyx Description: Binary data
Re: Tables - general question
Vaclav Smidl wrote: >> >>> I do not know. Possibly you can use a minipage for that. >> >> >> >>Again, I'll have a look at this method as well. >> >> It works, see attached example. >> You need to set the column width if you want the minipage width be >> a % of the column, and to get a proper LyX layout: compare col 1 and 2. > > When you fix the column width, each cell is set as a \parbox, so there is > no need to use minipage. (see attachment) However, the resulting .ps is > slightly different (extra vspace at the end of the second cell)... but you can always open up the paragraph dialog from inside this cell and insert a vertical spacer after the paragraph of -2ex... Just tested and it works perfectly. -- Angus
Re: Tables - general question
> > >>> I do not know. Possibly you can use a minipage for that. > >> > >>Again, I'll have a look at this method as well. > > It works, see attached example. > You need to set the column width if you want the minipage width be > a % of the column, and to get a proper LyX layout: compare col 1 and 2. When you fix the column width, each cell is set as a \parbox, so there is no need to use minipage. (see attachment) However, the resulting .ps is slightly different (extra vspace at the end of the second cell)... Vasek test_mini.lyx Description: application/lyx
RE: Tables - general question
Jean-Pierre; > > It works, see attached example. > You need to set the column width if you want the minipage width be > a % of the column, and to get a proper LyX layout: compare col 1 and 2. I think that is exactly what we need! Thanks for your time :-) > > -- > Jean-Pierre Rob S
RE: Tables - general question
>>From: "Rob S" <[EMAIL PROTECTED]> >>To: <[EMAIL PROTECTED]> >>Subject: RE: Tables - general question >>Date: Wed, 21 Jul 2004 10:00:18 +0100 [..] >>> >>> I do not know. Possibly you can use a minipage for that. >> >>Again, I'll have a look at this method as well. It works, see attached example. You need to set the column width if you want the minipage width be a % of the column, and to get a proper LyX layout: compare col 1 and 2. -- Jean-Pierre test_mini.lyx Description: test_mini.lyx
RE: Tables - general question
> > > Text alignment within the table causes her the most problems (differing > > amounts of cell padding). > > This is the standard TeX way, adapt the column width to the content. > Using the right-click table context menu, you can give the columns a > fixed width (Where fixed can also mean a certain procentage of text or > page width). This also allows line-breaking within a table cell. > > Once a satisfying table is set up, it can be saved as a template (in a > simple LyX file to be used via Insert>File>LyX). Ok, I'll have a look at that option - setting columns as percentage of page width may be what we are looking for. > > > Also, is it possible to use bullet lists inside a table cell? > > I do not know. Possibly you can use a minipage for that. Again, I'll have a look at this method as well. > Günter Cheers Rob S
Re: Tables - general question
On 20.07.04, Rob S wrote: > Text alignment within the table causes her the most problems (differing > amounts of cell padding). This is the standard TeX way, adapt the column width to the content. Using the right-click table context menu, you can give the columns a fixed width (Where fixed can also mean a certain procentage of text or page width). This also allows line-breaking within a table cell. Once a satisfying table is set up, it can be saved as a template (in a simple LyX file to be used via Insert>File>LyX). > Also, is it possible to use bullet lists inside a table cell? I do not know. Possibly you can use a minipage for that. Günter -- G.Milde at web.de
Tables - general question
Dear List; My wife is using Lyx for her thesis and is finding producing neat, regular sized tables difficult. Text alignment within the table causes her the most problems (differing amounts of cell padding). Also, is it possible to use bullet lists inside a table cell? Else, Can anyone recommend an alternative (to Lyx default) table formatting package? Kind Regards Rob S
Re: latex2html general question and hebrew problem
On Thu, Oct 17, 2002 at 07:49:19PM +0200, Amir Seginer wrote: > > Is this a problem with Lyx (ver. 1.2.1) or something in my setting? I don't know. I have no problem on my machine. > Also, when running latex2html manually I saw it looks for an .aux file. > Does Lyx generate such a file before running latex2html? Yes. > Now for the hebrew problem. > > I'm trying to export a hebrew file (exercises and solutions for a > course) to html. When I try to first export to latex and then manually > to html (running latex2html from the console), the conversion works, but > I get gibbrish from left to right instead of hebrew from right to left. First, are you sure that you need to generate an html file ? Why not use PDF ? Conversion from lyx(latex) to html, is not perfect, especially with Hebrew (you might have a problem with wrong position of punctuation). In order to have an Hebrew HTML document, you need to have the following: 1. A tag inside the HEAD part. 2. An dir="rtl" inside the BODY tag Namely, ... ... You should check the manual of latex2html to see if you can set the charset/dir in the command line, and if not, you can write a wrapper script. Another thing you should do is that latex2html might not recognize the \L{} or \R{} commands. So you need to add to the preamble of your document \renewcommand{\L}[1]{#1} \renewcommand{\R}[1]{#1} This command should only be used when generating the HTML, so read the latex2html manual to find out how to insert latex code that will only affect latex2html. You can also try other converters, which for example, might not have a problem with the \L or \R commands. I tried tex4ht (after modifying the htlatex script to use elatex), and it generate an almost working file (the only change needed is changing the charset from iso8859-8 to cp1255.
latex2html general question and hebrew problem
Hello, When I export to html from within Lyx (english or hebrew files) the resulting file doesn't load on my browser (never finishes loading the page). However, when I first export the files to Latex and then run the latex2html program (as written in the conversion tab in lyx), I have no problem. Is this a problem with Lyx (ver. 1.2.1) or something in my setting? Also, when running latex2html manually I saw it looks for an .aux file. Does Lyx generate such a file before running latex2html? Now for the hebrew problem. I'm trying to export a hebrew file (exercises and solutions for a course) to html. When I try to first export to latex and then manually to html (running latex2html from the console), the conversion works, but I get gibbrish from left to right instead of hebrew from right to left. Does any one know what the problem might be? Do I need special fonts for generating hebrew html? Do I have to set anything in lyx for this (I have no problem creating PS files). Finally if any one knows of good Lyx layouts/styles for hebrew exercises I would appreciate learning about them. Thanks in advance, Amir.