Re: Modifying section

2004-12-03 Thread Herbert Voss
Michael Lapsley wrote:
I tried useing this approach, but it showed that I do not really
understand how it works. Why does [EMAIL PROTECTED] detect an argument on
'[', given that \section is called as \section{text}?
I am trying to detect the empty case for item to set a flag to use
later.

I tried 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
 [EMAIL PROTECTED]@item}
 }

 but I cannot detect the two empty cases.  If you are in the mood for
 a little more programming I'd be much obliged (again)
redefine the original definition
\def\item{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED] [EMAIL PROTECTED]@noitemargtrue 
[EMAIL PROTECTED]@itemlabel]}}

Herbert
--
http://TeXnik.de/
http://PSTricks.de/
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


Re: Modifying item (attachment reformatted)

2004-12-03 Thread Michael Lapsley
On Fri, Dec 03, 2004 at 11:18:09PM +, Michael Lapsley wrote:

Hmmm,  don't know what happened to the line breaks in my
last post.  Here is the attachment in-line

--snip-
\documentclass[english,reqno]{amsart}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}

\makeatletter

\newenvironment{question}{\sffamily\begin{enumerate}}{\end{enumerate}}

[EMAIL PROTECTED]

\newenvironment{answer}{\normalfont%
[EMAIL PROTECTED]
\setlength\parindent{0pt}%
[EMAIL PROTECTED]

[EMAIL PROTECTED]
[EMAIL PROTECTED]@ifnextchar\begin%]
{beginT\let\itemlen=1}%\begin T
[EMAIL PROTECTED]@ifnextchar\egroup{egroupT}{egroupF}}{bgroupF}
}% \beginF
}% end def

%\def\item{%
%   [EMAIL PROTECTED]
%  [EMAIL PROTECTED] [EMAIL PROTECTED]@noitemargtrue
%  [EMAIL PROTECTED]@itemlabel]}}

\makeatother

\begin{document}
\begin{question}
%\item {} 
%\item {a grouped question} 
\item an ungrouped question
\begin{answer}
And Here is the answer\end{answer}
\end{question}

\end{document}


Lyx to Latex backto Lyx

2004-12-03 Thread LB
Hello
I'm working on a project with a few other people.  So far I'm the only one 
using LyX.   I wrote the initial part of the document and then gave it to 
the other people as a Latex file.  They have edited it and gave it back to 
me to make the final corrections and print out the final copy.

There are a couple things that I have noticed:
1)  The graphics appear inserted with a latex commands so they don't get 
displayed in the document
2)  For no apparent reason I use a lot of underscores in all my labels and 
in citation references, for example I use authorsname_1 and authorsname_2 to 
distinguish different publications by the same author.  It looks like the 
underscores are not understood by relyx.  Everywhere where underscore was 
relyx decided that the citation or label was over and the rest of them 
appeared as text in the document so if I had a caption of a figure labelled 
Pretty-figure_1 then the relyxed label would be Pretty-figure and 1} would 
appear in the document where the cross reference was inserted.  Does my 
description make sense?

Is it a good idea to avoid underscores and use hyphens instead?
Other than that everything else worked fine.
Thanks
Leo



checkmarks

2004-12-03 Thread Myriam Abramson

Hi!

How do you write checkmarks in tables (or elsewhere)? 


tia,

   myriam



Re: Modifying section

2004-12-03 Thread Herbert Voss
Michael Lapsley wrote:
I tried useing this approach, but it showed that I do not really
understand how it works. Why does [EMAIL PROTECTED] detect an argument on
'[', given that \section is called as \section{text}?
I am trying to detect the empty case for item to set a flag to use
later.

I tried 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
 [EMAIL PROTECTED]@item}
 }

 but I cannot detect the two empty cases.  If you are in the mood for
 a little more programming I'd be much obliged (again)
redefine the original definition
\def\item{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED] [EMAIL PROTECTED]@noitemargtrue 
[EMAIL PROTECTED]@itemlabel]}}

Herbert
--
http://TeXnik.de/
http://PSTricks.de/
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


Re: Modifying item (attachment reformatted)

2004-12-03 Thread Michael Lapsley
On Fri, Dec 03, 2004 at 11:18:09PM +, Michael Lapsley wrote:

Hmmm,  don't know what happened to the line breaks in my
last post.  Here is the attachment in-line

--snip-
\documentclass[english,reqno]{amsart}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}

\makeatletter

\newenvironment{question}{\sffamily\begin{enumerate}}{\end{enumerate}}

[EMAIL PROTECTED]

\newenvironment{answer}{\normalfont%
[EMAIL PROTECTED]
\setlength\parindent{0pt}%
[EMAIL PROTECTED]

[EMAIL PROTECTED]
[EMAIL PROTECTED]@ifnextchar\begin%]
{beginT\let\itemlen=1}%\begin T
[EMAIL PROTECTED]@ifnextchar\egroup{egroupT}{egroupF}}{bgroupF}
}% \beginF
}% end def

%\def\item{%
%   [EMAIL PROTECTED]
%  [EMAIL PROTECTED] [EMAIL PROTECTED]@noitemargtrue
%  [EMAIL PROTECTED]@itemlabel]}}

\makeatother

\begin{document}
\begin{question}
%\item {} 
%\item {a grouped question} 
\item an ungrouped question
\begin{answer}
And Here is the answer\end{answer}
\end{question}

\end{document}


Lyx to Latex backto Lyx

2004-12-03 Thread LB
Hello
I'm working on a project with a few other people.  So far I'm the only one 
using LyX.   I wrote the initial part of the document and then gave it to 
the other people as a Latex file.  They have edited it and gave it back to 
me to make the final corrections and print out the final copy.

There are a couple things that I have noticed:
1)  The graphics appear inserted with a latex commands so they don't get 
displayed in the document
2)  For no apparent reason I use a lot of underscores in all my labels and 
in citation references, for example I use authorsname_1 and authorsname_2 to 
distinguish different publications by the same author.  It looks like the 
underscores are not understood by relyx.  Everywhere where underscore was 
relyx decided that the citation or label was over and the rest of them 
appeared as text in the document so if I had a caption of a figure labelled 
Pretty-figure_1 then the relyxed label would be Pretty-figure and 1} would 
appear in the document where the cross reference was inserted.  Does my 
description make sense?

Is it a good idea to avoid underscores and use hyphens instead?
Other than that everything else worked fine.
Thanks
Leo



checkmarks

2004-12-03 Thread Myriam Abramson

Hi!

How do you write checkmarks in tables (or elsewhere)? 


tia,

   myriam



Re: Modifying section

2004-12-03 Thread Herbert Voss
Michael Lapsley wrote:
I tried useing this approach, but it showed that I do not really
understand how it works. Why does [EMAIL PROTECTED] detect an argument on
'[', given that \section is called as \section{text}?
I am trying to detect the empty case for item to set a flag to use
later.

I tried 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
 [EMAIL PROTECTED]@item}
 }

 but I cannot detect the two empty cases.  If you are in the mood for
 a little more programming I'd be much obliged (again)
redefine the original definition
\def\item{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED] [EMAIL PROTECTED]@noitemargtrue 
[EMAIL PROTECTED]@itemlabel]}}

Herbert
--
http://TeXnik.de/
http://PSTricks.de/
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


Re: Modifying item (attachment reformatted)

2004-12-03 Thread Michael Lapsley
On Fri, Dec 03, 2004 at 11:18:09PM +, Michael Lapsley wrote:

Hmmm,  don't know what happened to the line breaks in my
last post.  Here is the attachment in-line

<--snip->
\documentclass[english,reqno]{amsart}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}

\makeatletter

\newenvironment{question}{\sffamily\begin{enumerate}}{\end{enumerate}}

[EMAIL PROTECTED]

\newenvironment{answer}{\normalfont%
[EMAIL PROTECTED]
\setlength\parindent{0pt}%
[EMAIL PROTECTED]

[EMAIL PROTECTED]
[EMAIL PROTECTED]@ifnextchar\begin%]
{beginT\let\itemlen=1}%\begin T
[EMAIL PROTECTED]@ifnextchar\egroup{egroupT}{egroupF}}{bgroupF}
}% \beginF
}% end def

%\def\item{%
%   [EMAIL PROTECTED]
%  [EMAIL PROTECTED] [EMAIL PROTECTED]@noitemargtrue
%  [EMAIL PROTECTED]@itemlabel]}}

\makeatother

\begin{document}
\begin{question}
%\item {} 
%\item {a grouped question} 
\item an ungrouped question
\begin{answer}
And Here is the answer\end{answer}
\end{question}

\end{document}


Lyx to Latex backto Lyx

2004-12-03 Thread LB
Hello
I'm working on a project with a few other people.  So far I'm the only one 
using LyX.   I wrote the initial part of the document and then gave it to 
the other people as a Latex file.  They have edited it and gave it back to 
me to make the final corrections and print out the final copy.

There are a couple things that I have noticed:
1)  The graphics appear inserted with a latex commands so they don't get 
displayed in the document
2)  For no apparent reason I use a lot of underscores in all my labels and 
in citation references, for example I use authorsname_1 and authorsname_2 to 
distinguish different publications by the same author.  It looks like the 
underscores are not understood by relyx.  Everywhere where underscore was 
relyx decided that the citation or label was over and the rest of them 
appeared as text in the document so if I had a caption of a figure labelled 
Pretty-figure_1 then the relyxed label would be Pretty-figure and 1} would 
appear in the document where the cross reference was inserted.  Does my 
description make sense?

Is it a good idea to avoid underscores and use hyphens instead?
Other than that everything else worked fine.
Thanks
Leo



checkmarks

2004-12-03 Thread Myriam Abramson

Hi!

How do you write checkmarks in tables (or elsewhere)? 


tia,

   myriam