Re: Understanding LaTeX in a Specific Context

2005-06-28 Thread Kimmo Elo
Hi,

2005-06-28 at 11:04 -0700, Rich Shepard wrote:
>I have spent time in Kopka and Daly's "Guide to LaTeX, 4th Ed" and in TLC2.
> However, I still need a cluestick or two from someone fluent in LaTeX. FWIW,
> the world headquarters of TUG is here in Portland, a mere 15 miles from me,
> but I've not had any luck in contacting anyone there. :-)

I use Frank Mittelbach & Michael Goossens (2004): The LaTeX Companion
(2nd edition), Boston: Addison-Wesley. I think this book could be
helpful for You, too...

Best regards

Kimmo Elo
Turku, Finland




View problem with TOC and cross referencing

2005-06-28 Thread Roger McMurtrie
Every time I enter Lyx, the first time I View a document, the Table of 
Contents is empty and cross-referencing including citation references are 
replaced by question marks. This applies to both View->DVI and View->PDF.

After each first-time failure, later use of View works fine.

I am using Lyx 1.3.5 under Mandrake 10.1


Re: Understanding LaTeX in a Specific Context

2005-06-28 Thread chr
On Tue, 28 Jun 2005, Rich Shepard wrote:

> On Tue, 28 Jun 2005 [EMAIL PROTECTED] wrote:
> 
> > I don't really know any LaTeX, but wouldn't it make sense if you could show
> > people on this list what you're trying to achieve?
> 
> /Christian,
> 
>Yes, except I didn't want to past the code here.

Oh, I meant something like the DVI-output of the LaTeX, to show an example
of the goal - that's what matters, right?

> I'm able to use \psovalbox to put an oval on the page. Now I'll work
> toward controlling the placement and making multiple lines of ovals.
> I'll put up the code either when I get stuck or when I succeed so it's
> an example others can copy. Perhaps on the wiki?

Sure, that's what the group Examples/ is for...

/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Understanding LaTeX in a Specific Context

2005-06-28 Thread Rich Shepard

On Tue, 28 Jun 2005 [EMAIL PROTECTED] wrote:


I don't really know any LaTeX, but wouldn't it make sense if you could show
people on this list what you're trying to achieve?


/Christian,

  Yes, except I didn't want to past the code here.

  I'm able to use \psovalbox to put an oval on the page. Now I'll work toward
controlling the placement and making multiple lines of ovals. I'll put up the
code either when I get stuck or when I succeed so it's an example others can
copy. Perhaps on the wiki?

Thanks,

Rich

--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: Understanding LaTeX in a Specific Context

2005-06-28 Thread chr
On Tue, 28 Jun 2005, Rich Shepard wrote:

> On Tue, 28 Jun 2005, Herbert Voss wrote:
> 
> > http://tug.org/PSTricks/main.cgi?file=Examples/Box/boxes
> 
> Herbert,
> 
>Thank you.
> 
>This afternoon (local time) I'll try creating a document from scratch that
> does what I want. I'll use code I understand from the template I was sent,
> but will try to create what I need.
> 
>When I have specific questions, I'll ask.

I don't really know any LaTeX, but wouldn't it make sense if you could 
show people on this list what you're trying to achieve? 

/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Understanding LaTeX in a Specific Context

2005-06-28 Thread Rich Shepard

On Tue, 28 Jun 2005, Herbert Voss wrote:


http://tug.org/PSTricks/main.cgi?file=Examples/Box/boxes


Herbert,

  Thank you.

  This afternoon (local time) I'll try creating a document from scratch that
does what I want. I'll use code I understand from the template I was sent,
but will try to create what I need.

  When I have specific questions, I'll ask.

Rich

--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: Understanding LaTeX in a Specific Context

2005-06-28 Thread Herbert Voss

Rich Shepard wrote:


  There may well be a simpler, cleaner way to produce a form that has a
header (for identification) and a specified number of rows with little 
ovals

for answers. I'm just not good enough to know that that way is.


http://tug.org/PSTricks/main.cgi?file=Examples/Box/boxes

Herbert




Re: Understanding LaTeX in a Specific Context

2005-06-28 Thread Rich Shepard

On Tue, 28 Jun 2005, Herbert Voss wrote:


\newlength{\omrx}


define a new length

\setlength{\omrx}{1.6em}


set it to 1.6em


Herbert,

  These I understand.


\newcommand{\omrbox}{\makebox[\omrx]{%

define the new command \omrbox
define a makebox of width \omrx -> 1.6em (reserves space
for this)

   \psframebox[framearc=.7,framesep=0.55ex]{\rule{0.35em}{0pt


draw a framebox with arc and a framesep
put a rule of width 0.35em of height zero in there
(rule is not seen)

this is a code to get a framebox of specific height and width.


  Why this is done, and done this way, is what I really don't get in this
fragment.


nonsense code to me ...


  There may well be a simpler, cleaner way to produce a form that has a
header (for identification) and a specified number of rows with little ovals
for answers. I'm just not good enough to know that that way is.

Thanks,

Rich

--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: Understanding LaTeX in a Specific Context

2005-06-28 Thread Herbert Voss

Rich Shepard wrote:

  Last week I posted a LaTeX code fragment on Usenet (comp.text.tex) and
asked for help in understanding just what it is doing. No one replied to my
request.


[EMAIL PROTECTED] wrote:
>   I'm modifying a form that was graciously provided to me by an 
academic in
> Australia. My first task is to understand everything in it so I can 
wisely
> modify it for my needs. (The form is used to optically scan answers 
marked in

> pencil on it.)
>
>   I've made it through part of the preamble, where the page is laid 
out for

> the form. Then there are these lines:
>
> \newlength{\omrx}

define a new length

> \setlength{\omrx}{1.6em}

set it to 1.6em

> \newcommand{\omrbox}{\makebox[\omrx]{%

define the new command \omrbox
define a makebox of width \omrx -> 1.6em (reserves space
for this)

>\psframebox[framearc=.7,framesep=0.55ex]{\rule{0.35em}{0pt

draw a framebox with arc and a framesep
put a rule of width 0.35em of height zero in there
(rule is not seen)

this is a code to get a framebox of specific height and width.

nonsense code to me ...


Herbert


--
http://TeXnik.de/
http://PSTricks.tug.org/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes



Understanding LaTeX in a Specific Context

2005-06-28 Thread Rich Shepard

  Last week I posted a LaTeX code fragment on Usenet (comp.text.tex) and
asked for help in understanding just what it is doing. No one replied to my
request.

  The context is that I have a LaTeX file that is used to grade exams at an
Australian University and the author gave me permission to modify it for my
needs: doing pairwise comparisons to be tabulated by scanning the forms in an
optical mark sensing reader (such as the ScanTron(R)).

  I understand the part of the preamble that sets up the page size and
margins. Now I'm trying to understand the relationships among the code and
the appearance of the form. PSTricks is used to draw the ovals in which one
marks his choices with a No. 2 pencil, and the multido package is used to
produce an answer line for each question. Unfortunately, I'm not sufficiently
fluent in LaTeX to really understand what I read. This means I don't know how
to modify it for my purposes.

  Ideally, I'd like to create a template that will produce a scannable form
for a variable number of items; two columns per side and multiple sides or
pages when necessary. I think that the "questions" will be on a separate
sheet so that the scanned forms contain only the answers.

  Anyway, I need a tutor (or mentor, if you will) willing to teach me what
the template is doing (and why it's doing that) so I can intelligently create
the template I need. No one on the news group expressed any interest so I'm
asking here if anyone will help -- off the list, of course, as it's not
directly related to LyX.

  I have spent time in Kopka and Daly's "Guide to LaTeX, 4th Ed" and in TLC2.
However, I still need a cluestick or two from someone fluent in LaTeX. FWIW,
the world headquarters of TUG is here in Portland, a mere 15 miles from me,
but I've not had any luck in contacting anyone there. :-)

TIA,

Rich

--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: Some Keyboard shortcuts don't work under Lyx 1.3.6 (Windows)

2005-06-28 Thread Angus Leeming
Wang Xiangqi wrote:
> I am not sure whether I need special setting or not, but some keyboard
> shortcuts don't work under LyX 1.3.6 (Windows).

It *is* pre-release software...

> Like Ctrl+M (math), ctrl+enter (forced new line), ctrl+l (latex),etc.
> Anyone can shade some lights on it?

How about: http://wiki.lyx.org/Windows/LyX136pre#qt_winfree_bugs

-- 
Angus



Some Keyboard shortcuts don't work under Lyx 1.3.6 (Windows)

2005-06-28 Thread Wang Xiangqi
I am not sure whether I need special setting or not, but some keyboard  
shortcuts don't work under LyX 1.3.6 (Windows). Like Ctrl+M (math),  
ctrl+enter (forced new line), ctrl+l (latex),etc.


Anyone can shade some lights on it?

More thanks.

Regards.

Sunkey


Re: convert text to math equation

2005-06-28 Thread G. Milde
On 28.06.05, Uwe Stöhr wrote:
> Paul Johnson schrieb:
> 
> >I was lazy and typed several pages with ordinary text for variables x, 
> >y, and z.  Later, I wanted to convert those to math, and I try to 
> >highlight the things and hit C-m.  That does create the math box, but it 
> >does not convert the existing character to the math font.  The only fix 
> >I could find was to manually retype all the letters I wanted converted.
> 
> Why do you want to use formulas for variables? I assume that you only 
> want them to be italic, right? Then simply highlight them and use the 
> button with the exclamation mark.

While this is a quick workaround, it is not "the right thing", as it uses
visual as opposed to semantic markup. If the variables should be marked
as "math", better use math (e.g. changing the math-font document wide
would otherwise lead to unpleasant surprises). (BTW, in LaTeX, $x$ is
shorter than \emph{x}.)

You could try to change one instance by hand (typing Ctrl-M x), have a look
at the lyx source to spot the difference and use your favourite text editor
to do a search and replace.

Günter

-- 
G.Milde web.de


Re: convert text to math equation

2005-06-28 Thread Uwe Stöhr

Paul Johnson schrieb:

I was lazy and typed several pages with ordinary text for variables x, 
y, and z.  Later, I wanted to convert those to math, and I try to 
highlight the things and hit C-m.  That does create the math box, but it 
does not convert the existing character to the math font.  The only fix 
I could find was to manually retype all the letters I wanted converted.


Why do you want to use formulas for variables? I assume that you only 
want them to be italic, right? Then simply highlight them and use the 
button with the exclamation mark.


regards Uwe


Re: Renaming 'Bibliography' to 'References'

2005-06-28 Thread Uwe Stöhr

Jonathan Stafford schrieb:

I would like to be able to change the title of my Bibliography to 
'References'.


Have a look at

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=fixnam

and

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexwords

In your case add the following lines to the document preamble:

\usepackage[english]{babel}
\addto\captionsenglish{\renewcommand{\bibname}{References}}

Note that the babel option must be identic to the document language to 
avoid problems.
Note also that one normally uses the name "References" only for 
articles. For reports and books one uses "Bibliography".


regards Uwe


Re: IEEE template.

2005-06-28 Thread G. Milde
On 27.06.05, Jason wolf wrote:
> Hello everyone,
>
> I'm a beginner of LyX. I am trying to use it to write papers for IEEE
> transactions and Conferences. I downloaded the LaTex templates from the
> IEEE websites. I tried to import them to LyX files. There are always errors
> when I tried to view it in Dvi or export it to PS file. 

Sometimes not all special features of a LaTeX class are translated into a
LyX layout or the way the latex file is written just is not
"lyx-friendly".

> /usr/share/lyx/layouts/IEEEtran.layoutI am wondering how should I solve
> this or is there any LyX templates for IEEE publications?

On my Debian system I have with LyX 1.3.6 the files

/usr/share/lyx/layouts/IEEEtran.layout
/usr/share/lyx/templates/IEEEtran.lyx

The latter is the template and should be available under 
File>New from Template.

Try this first. If there are still problems, pleas specify them on the
list or, even better, attach a short example.

Günter


--
G.Milde web.de


IEEE template.

2005-06-28 Thread Ekkehart Schlicht

On my system, selecting
Layout->Document->Document Class: article(IEEEtran) works just fine.
This requires that your Latex system has the IEEEtran document class.
If you don't have it, install it and run Edit->Reconfigure.
You may check your Latex configuration (Help->Latex Configuration),
for what you have installed, but this does not work under Windows yet.
(There is a patch on Wiki, however).

HTH

Ekkehart