Re: ?s with table captions, table text justification, double rows, math cases and more
On Wed, Nov 14, 2001 at 02:52:59PM -0700, John Boik wrote: > I want to get table text to be \rightragged, not horizontally > centered. If I type in "\rightragged" in the alignment box of > the table popup, it does not work. Any other ideas? Yes, and that is exactly what I have written to you. Carefully select all fields in the particular column (so that they are blue), then go to Layout/Tabular and in the frame H. Alignment select Right. What's wrong with that? > intended second line down below the intended first line in the > column. Where is the linebreaks button, or what else am I doing > wrong? Fill the column with the content, then select it and set in the field Width the width, which the column is to take. That's it. LyX will break the lines appropriately. > > Matej wrote: > > >Section 4.4.4 in your User Guide.< > > As per my original posting I have read this but it did not > help. The previous paragraph of mine is by the section 4.4.4 of Guide. Which version of LyX do you have? If not 1.1.6fix, go and upgrade. > >Alt-C,< > > That seems to work, but only for one word at a time. Yup, that's it. I am sorry. > >You can use \linewidth as a unit (so, .55\linewidth is a legal > expression for the column width).< > > This did not seem to work for me. If I type in ".55\linewidth" > in the width box of the table popup, it tells me that it is an > invalid format. Herbert says it must be done manually by > specifying the width in mm or similar units. You are probably right and LyX doesn't support this. Sorry. Have a nice day Matej -- Matej Cepl, [EMAIL PROTECTED] 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 A nation or civilization that continues to produce soft-minded men purchases its own spiritual death on an installment plan. --Martin Luther King, Jr.
Re: ?s with table captions, table text justification, double rows, math cases and more
On Wed, Nov 14, 2001 at 02:52:59PM -0700, John Boik wrote: > Hello: > Thanks to Matej, Thomas, and Herbert and others for answering my questions. > However, I am still struggling with some of my original problems. Any other > suggestions or remarks? > > Concerning my second question: I would like to get rid of the default > justification for text in a table column. Is there a way to do this without > having to enter the \rightragged tex command in every single cell of the > table? I would like to have my text \rightragged, but I cannot find a way > to set the whole table (or even whole column) that way at once. Is there a > global solution?, Yes. Put the following lines in the preamble: \usepackage{array} \def\PBS#1{\let\temp=\\#1\let\\=\temp} \newcolumntype{P}[1]{>{\PBS\raggedright}p{#1}} Then, for each column in the table, after entering the width in the width field, (e.g. 2in), put the text P{2in} in the special alignment field. > Concerning my third question: Some rows of my table are intended to fall on > two lines. One solution in the Lyx guide is to actually use two rows, but I > don't want to do that. The other solution listed doesn't seem to work for > me. It says to enter a "\\" at the needed text break and then check the > "linebreaks" button on the table format popup. I cant find any "linebreaks" > button. If I just type in "\\", it starts an entire new row from scratch, > and does not just move the intended second line down below the intended > first line in the column. Where is the linebreaks button, or what else am I > doing wrong? The Userguide is somewhat obsolete. If you want a linebreak just press ctrl+enter. > Concerning my fourth question: Is there an easy way to select text and then > format it all in caps (not small caps, or whatever is listed in the > character popup), or as title caps (first word capitalized)? > > Matej wrote: > > >Alt-C,< > > That seems to work, but only for one word at a time. This will work in lyx 1.2.0. You will have to wait. > Concerning my fifth question: Is there any easy way to automatically have a > table span exactly the width of the paper? I understand the tabularx > package does not work with Lyx (or if it does I do not know how to use it). > I would like to have the table fit the page, and then have certain columns > larger or smaller than others. > > Matej wrote: > > >You can use \linewidth as a unit (so, .55\linewidth is a legal > expression for the column width).< > > This did not seem to work for me. If I type in ".55\linewidth" in the width > box of the table popup, it tells me that it is an invalid format. Herbert > says it must be done manually by specifying the width in mm or similar > units. This is a problem in LyX as latex accepts it. The solution: Write a dummy length in the width field, e.g. 1in, and then in the special column alignment put P{0.5\linewidth}. In fact, you can use \newcolumntype{P}[1]{>{\PBS\raggedright}p{#1\linewidth}} in the preamble, and then use 0.
RE: ?s with table captions, table text justification, double rows, math cases and more
Hello: Thanks to Matej, Thomas, and Herbert and others for answering my questions. However, I am still struggling with some of my original problems. Any other suggestions or remarks? Concerning my second question: I would like to get rid of the default justification for text in a table column. Is there a way to do this without having to enter the \rightragged tex command in every single cell of the table? I would like to have my text \rightragged, but I cannot find a way to set the whole table (or even whole column) that way at once. Is there a global solution?, Matej wrote: >For your problem: try to highlight cells in the particular column and then set alignment in Layout/Tabular/Column-Row/H. Alignment.< This did not seem to work for me, or I dont understand. I want to get table text to be \rightragged, not horizontally centered. If I type in "\rightragged" in the alignment box of the table popup, it does not work. Any other ideas? Concerning my third question: Some rows of my table are intended to fall on two lines. One solution in the Lyx guide is to actually use two rows, but I don't want to do that. The other solution listed doesn't seem to work for me. It says to enter a "\\" at the needed text break and then check the "linebreaks" button on the table format popup. I cant find any "linebreaks" button. If I just type in "\\", it starts an entire new row from scratch, and does not just move the intended second line down below the intended first line in the column. Where is the linebreaks button, or what else am I doing wrong? Matej wrote: >Section 4.4.4 in your User Guide.< As per my original posting I have read this but it did not help. Concerning my fourth question: Is there an easy way to select text and then format it all in caps (not small caps, or whatever is listed in the character popup), or as title caps (first word capitalized)? Matej wrote: >Alt-C,< That seems to work, but only for one word at a time. Concerning my fifth question: Is there any easy way to automatically have a table span exactly the width of the paper? I understand the tabularx package does not work with Lyx (or if it does I do not know how to use it). I would like to have the table fit the page, and then have certain columns larger or smaller than others. Matej wrote: >You can use \linewidth as a unit (so, .55\linewidth is a legal expression for the column width).< This did not seem to work for me. If I type in ".55\linewidth" in the width box of the table popup, it tells me that it is an invalid format. Herbert says it must be done manually by specifying the width in mm or similar units.
Re: ?s with table captions, table text justification, double rows, math cases and more
Op maandag 12 november 2001 12:01, schreef John Boik: > Eighth and last, I would like to use BibTex for my references, and I > understand how to import the citation into Lyx, but I don't know how to > start BibTex in the first place to enter a list of references. If I go to > the command line and type in "BibTex", it tells me it needs an argument. > The help command doesn't tell me much either that I can understand. If I > try to make a new bib file by typing in "BibTex foo", it tells me that it > cannot open file name 'foo.aux'. How does one start BibTex to make a new > file? I use the Gnome BibTeX Editor (gBib) which has a nice interface with LyX itself. Egbert
Re: ?s with table captions, table text justification, double rows, math cases and more
On Mon, Nov 12, 2001 at 01:30:39PM +0100, Thomas Steffen wrote: > > > First, I would like to use a different font family (sans > > serif rather than times) for table captions. > > This is defined by the LaTeX style. Try the koma-script family > instead of the default styles. (That's in Layout->Document.) It > will change other details, too. No, he has been asking about _table_ captions, not _section_ titles. There must be a special package for that somewhere on CTAN. > > Second, I would like to get rid of the default justification > > for text in a table column. > > Should be possible, but justification has always been a weak > point of LaTeX (imho). NO! Justification is exactly the most strong aspect of TeX (and LaTeX therefore) -- it makes the stuff much better than any other commercial program used for typesetting (except for Adobe InDesign, but not for their PageMaker). The only other exception which makes it as well as TeX is lout (and only because the author copied the algorithm from TeX). Why do you think so many high-tech professional publishing houses use TeX for their work? For your problem: try to highlight cells in the particular column and then set alignment in Layout/Tabular/Column-Row/H. Alignment. > > Third, some rows of my table are intended to fall on two > > lines. > > Very difficult. Using two rows is the easiest, if possible. > Otherwise you can define multiline cells with linebreaks. You > have to define a widths, imho. Details depend on the exact LyX > version. Section 4.4.4 in your User Guide. > > > Fourth, is there an easy way to select text and then format > > it all in caps (not small caps, or whatever is listed in the > > character popup), or as title caps (first word capitalized)? > > Not that I know. Emacs does it with M-u. So if anyone could > write this for LyX... Alt-C, > > Fifth, is there any easy way to automatically have a table > > span exactly the width of the paper? > > Yes, this can be done using LaTeX. You can specify the column > width as part of the paper width. I don't remember the exact > syntax, though. You can use \linewidth as a unit (so, .55\linewidth is a legal expression for the column width). > > Eighth and last, I would like to use BibTex for my > > references, and I understand how to import the citation into > > Lyx, but I don't know how to start BibTex in the first place > > to enter a list of references. > > BibTeX databases are just text files. You can write them with > your favourite editor, or you use one of the several special > programs for BibTeX files. Try to read btxdoc.dvi in your distribution of TeX. Hint: program called bibtex is called automagically by LyX when needed. It just process records from your .bib file in the form which is needed by LaTeX. BibTeX databases are really just a text files to be written (try bibtex-mode in Emacs, or pybibliographer in GNOME). They consists from records like this one: @article{coleman:AJS-1988-S95, author = {James S. Coleman}, title ={Social Capital in the Creation of Human Capital}, journal = {American Journal of Sociology}, year = 1988, volume = 94, pages ={S95-S120} } but you need to read more about them. Try above mentioned .dvi file and an Emacs mode -- although I really hate EMACS, this is the only part of it, which I used for a couple of years with huge satisfaction. > > I know that there is an export function, but I think I read > > that it is 95% or so accurate in conveying the full meaning > > of what was typeset in Lyx. > > No, the export is 100% accurate (more or less). It is the > import which not infallible. The export into LaTeX is done everytime you hit Ctrl-D for previewing your document in xdvi, there it MUST be and it IS 100% accurate. > > Also, having it in *.tex format would allow easy sharing of > > files with other collaborators who are using LaTex but not > > Lyx. As said above, export to .tex is 100% accurate, so there is nothing preventing you from sharing your files with the rest of the world. The only problem is that your friends will find some of the .tex files slightly confusing (because humans do it better), but of course .dvi/.ps output is 100% same as the document you would write in plain LaTeX (just, it takes less time to do it in LyX :-). Have a nice day and be patient Matej -- Matej Cepl, [EMAIL PROTECTED] 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 DOS: n., A small annoying boot virus that causes random spontaneous system crashes, usually just before saving a massive project. Easily cured by UNIX. See also MS-DOS, IBM-DOS, DR-DOS. -- David Vicker's .plan
Re: ?s with table captions, table text justification, double rows, math cases and more
John Boik wrote: > > Fifth, is there any easy way to automatically have a table span exactly the > width of the paper? I understand the tabularx package does not work with > Lyx (or if it does I do not know how to use it). I would like to have the > table fit the page, and then have certain columns larger or smaller than > others. no, not yet possible. find out your textwidth and give the different columns a width so that they all fit the whole width or use tabularx in ert. > Sixth, I have a new command that I put in the preamble that inserts the > microgram symbol (the Greek micro and the roman g) if I type in \mg. It is: > > \newcommand{\mg}{$\mu$g } > > It allows me to easily type in, for example, 70 ug. But, when the > paragraphs are justified, Lyx does not know to keep the 70 next to the ug > symbol and the space looks funny. Is there a way to keep the two next to > each other? put a protected space (ctrl-space) between them, not a standard space. > Seventh, and this one might be the hardest, when I use the \begin{cases} and > \end{cases} command in the math mode, I cannot figure how to make the two > cases split lines vertically or how to make the left part (the equation) > horizontally space itself away from the right part (the cases). Here is an > example of my command: > > Y=\begin {cases}10+k&\text {if}\, k=1 \text{and}\cr 20+k&\text {if}k=2.\end > {cases} in special cases write the whole formula in ert. > Eighth and last, I would like to use BibTex for my references, and I > understand how to import the citation into Lyx, but I don't know how to > start BibTex in the first place to enter a list of references. If I go to > the command line and type in "BibTex", it tells me it needs an argument. > The help command doesn't tell me much either that I can understand. If I > try to make a new bib file by typing in "BibTex foo", it tells me that it > cannot open file name 'foo.aux'. How does one start BibTex to make a new > file? http://www.lyx.org/help/bibtex/bibtex-start.html Herbert
Re: ?s with table captions, table text justification, double rows, math cases and more
John Boik wrote: > Fourth, is there an easy way to select text and then format it all in caps > (not small caps, or whatever is listed in the character popup), or as title > caps (first word capitalized)? Don't know if this is what you're looking for, but there is a LaTeX command: \MakeUppercase{} which changes whatever is within the brackets to uppercase. > Eighth and last, I would like to use BibTex for my references, and I > understand how to import the citation into Lyx, but I don't know how to > start BibTex in the first place to enter a list of references. If I go to > the command line and type in "BibTex", it tells me it needs an argument. > The help command doesn't tell me much either that I can understand. If I > try to make a new bib file by typing in "BibTex foo", it tells me that it > cannot open file name 'foo.aux'. How does one start BibTex to make a new > file? There are a couple of applications which help you type up the .bib file. http://sourceforge.net/projects/pybliographer/ http://www.cat.csiro.au/cmst/staff/pic/tkbibtex.html > John Boik > Oregon Medical Press > www.ompress.com > [EMAIL PROTECTED]
Re: ?s with table captions, table text justification, double rows, math cases and more
"John Boik" <[EMAIL PROTECTED]> writes: > First, I would like to use a different font family (sans serif rather than > times) for table captions. This is defined by the LaTeX style. Try the koma-script family instead of the default styles. (That's in Layout->Document.) It will change other details, too. > Second, I would like to get rid of the default justification for > text in a table column. Should be possible, but justification has always been a weak point of LaTeX (imho). > Third, some rows of my table are intended to fall on two lines. Very difficult. Using two rows is the easiest, if possible. Otherwise you can define multiline cells with linebreaks. You have to define a widths, imho. Details depend on the exact LyX version. > Fourth, is there an easy way to select text and then format it all > in caps (not small caps, or whatever is listed in the character > popup), or as title caps (first word capitalized)? Not that I know. Emacs does it with M-u. So if anyone could write this for LyX... > Fifth, is there any easy way to automatically have a table span exactly the > width of the paper? Yes, this can be done using LaTeX. You can specify the column width as part of the paper width. I don't remember the exact syntax, though. > Sixth, I have a new command that I put in the preamble that inserts the > microgram symbol (the Greek micro and the roman g) if I type in \mg. It is: > > \newcommand{\mg}{$\mu$g } Imho it should be a math macro. Look it up in the help, they are easy to define an use. > It allows me to easily type in, for example, 70 ug. But, when the > paragraphs are justified, Lyx does not know to keep the 70 next to the ug > symbol and the space looks funny. Is there a way to keep the two next to > each other? Use a protected space (Ctrl-SPACE). > Seventh, and this one might be the hardest, when I use the \begin{cases} and > \end{cases} command in the math mode, I always do this manually, with a left bracket and an n by 3 matrix. > Eighth and last, I would like to use BibTex for my references, and I > understand how to import the citation into Lyx, but I don't know how to > start BibTex in the first place to enter a list of references. BibTeX databases are just text files. You can write them with your favourite editor, or you use one of the several special programs for BibTeX files. > One suggestion, which might be a hard one, would be to have it > natively save its files in *.tex format and do all the conversion > behind the scenes. Yes, it would be nice, but LyX is not going this way. > I know that there is an export function, but I think I read that it > is 95% or so accurate in conveying the full meaning of what was > typeset in Lyx. No, the export is 100% accurate (more or less). It is the import which not infallible. > Also, having it in *.tex format would allow easy sharing of files > with other collaborators who are using LaTex but not Lyx. Well, not really. Unless the formatting of the tex-file is kept (which cannot be done), exchanging files with TeX "purists" is always a bit difficult. Export and import is a way of communicating this to the user :-) Thomas <[EMAIL PROTECTED]> -- Umweltfreundlich, da aus recycleten Buchstaben.