Unequivocally force first reference to same page as the referred item?

2011-01-25 Thread Thangalin
Hi,

I posted a message to tex.stackexchange.com:

http://tex.stackexchange.com/questions/9496/unequivocally-force-first-reference-to-same-page-as-the-referred-item

Is there a way for LyX to force LaTeX (or TeX) to put the first figure
(listing, or table) cross-reference on the same page as the referenced item?

Thank you!
Dave


Minutes typeseting

2011-01-25 Thread Xabier Abasolo
Hello,

I was looking for templates to take or write minutes, and I found this: 
CTAN home   / tex-archive
 / macros
 / latex
 / contrib
 / minutes 

Now my questions are: 
*   Is this package suitable for LyX? 
*   How can I add this package to LyX? I tryed with FILE / IMPORT /
LATEX, but I´ve got several Latex errors…

Thanks.



Making paragraphs stick together

2011-01-25 Thread Barak Shoshany
Hello,

Sometimes I want to force two paragraphs to be on the same page. This may be
done with Ctrl+Enter and the end of the first paragraph, but then the
spacing between them is too small. How can I make two paragraphs (or maybe
even a paragraph and an image, table, etc.) always be on the same page, no
matter what?

Thanks,
Barak


Re: Making paragraphs stick together

2011-01-25 Thread Les Denham
On Tue, 2011-01-25 at 15:15 +0200, Barak Shoshany wrote:
> Hello,
> 
> 
> Sometimes I want to force two paragraphs to be on the same page. This
> may be done with Ctrl+Enter and the end of the first paragraph, but
> then the spacing between them is too small. How can I make two
> paragraphs (or maybe even a paragraph and an image, table, etc.)
> always be on the same page, no matter what?
> 
> 
> Thanks,
> Barak

Try this in the preamble:

\renewcommand{\bottomfraction}{0.8} 
% Allows up to 80% at the bottom of the page be floats
\renewcommand{\textfraction}{0.07} % allow minimal text w. figs 

Also see http://mintaka.sdsu.edu/GF/bibliog/latex/floats.htm

Les




Lyx2 + latex-tufte -- recurring error on rendering to DVI

2011-01-25 Thread Michael Gilbert
Hi —

I am a newcomer to this list. Please forgive me in advance for missteps. This 
looks like a really great community and I look forward to learning fast. 

I'm running Lyx2.0b3 on Mac OSX 10.6.6. I have the latest installation from Mac 
TeX and (using TeX Live Utility) did an update of all packages. I started 
several documents using the plain article class, using the following 
environments: Standard, Title, Abstract, Section, Itemize, Paragraph, and Float 
(Figure). Each has some images and a few local styles (just using the LyX 
interface). Now I want to start making the document more attractive and I want 
to see what I can do with the latex-tufte class. I switched the class and then 
the errors started as soon as I try to view the DVI. Basically, I get several 
repetitions of this pattern in the LaTeX Errors window:

! Argument of \MakeTextLowercase has an extra }.
! Paragraph ended before \MakeTextLowercase was complete.
! You can't use `math shift character $' after \the.
! Argument of \@skipmath has an extra }.
! Paragraph ended before \@skipmath was complete.

All five of those lead to a highlight of the same portion of text in the 
document. Looking at the source for that portion (and the surrounding source), 
I don't see any evidence of the errors listed. In fact, I don't see any of the 
commands (is that the right word?) listed. I am modestly skilled at some 
scripting languages, but a TeX newbie, so I don't really know where to dig. I 
can add that, when I look at View Complete Log, there is actually a larger 
pattern. (The overview LaTeX Errors window seems to leave some out.) Listing 
only the error lines themselves (I assume those are the ones with exclamation 
points), this is the complete pattern (after which it moves to another place in 
the document and does the whole thing again):

! Argument of \MakeTextLowercase has an extra }.
! Paragraph ended before \MakeTextLowercase was complete.
! You can't use `math shift character $' after \the.
! Argument of \@skipmath has an extra }.
! Paragraph ended before \@skipmath was complete.
! Undefined control sequence.
! Use of \SOUL@n doesn't match its definition.
! Use of \protect doesn't match its definition.
! Package soul Error: Reconstruction failed.
! Undefined control sequence.
! Missing number, treated as zero.
! Illegal unit of measure (pt inserted).
! Extra }, or forgotten \endgroup.

In addition to looking at the source, I have cut back on the document so that 
it only produces one of these, and then, eventually, none. Character by 
character, I found some arbitrary place where it started to do this. To my 
naive eyes, there is nothing magical about that point. I am happy to try other 
troubleshooting techniques.

Suggestions?

TIA, to say the least

— Michael

Nonprofit Online News
http://news.gilbert.org




Can anyone help?

2011-01-25 Thread Lars Adiels
Hello
I wonder if any one can help with one or morre of those questions, please.
I want to procuce dokuments in the line of Te.pdf (attached). My lyx
file is Te.lyx and the layoutfile myTe_layout.local.

Q1. the mechanism I used is insets. I would like to make those boxes as
styles. But if I do that I cant color them in the lyx window?

Q2 if I have to use insets I also have too specify the correct style in
each box. Can this be automatic. There is a possibility to not force
plain but one can not force a given style?

Q3 I net a protected space in the beginning of each box if not the text
splits.??

Q4 The boxes are not purre rectangels. Can this be fixed?


/Lars


Te.pdf
Description: Adobe PDF document


Te.lyx
Description: application/lyx
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{Te}

Input stdclass.inc

Preamble

\usepackage[dvipsnames]{color}
\usepackage{framed}
\definecolor{shadecolor}{rgb}{1,0,0}



\newenvironment{Definition}[1]{%
  \leftskip 2cm
  \rightskip .5in
\definecolor{shadecolor}{cmyk}{0,0,.1,0}
\begin{minipage}[t]{1\columnwidth}%
\begin{shaded}%
#1%
\end{shaded}%
\end{minipage}

}{
}


\newenvironment{Bevis}[1]{%
  ~\\
  \leftskip .2cm
  \rightskip .5in
\definecolor{shadecolor}{cmyk}{0.33,0.06,0,0}
\begin{minipage}[t]{1\columnwidth}%
\begin{shaded}%
#1%
\end{shaded}%
\end{minipage}
}{
  \par
  ~\\
}


\newenvironment{Sats}[1]{%
  ~\\
  \leftskip .2in
  \rightskip .5in
\definecolor{shadecolor}{cmyk}{0.02,0.06,0.08,0}
\begin{minipage}[t]{1\columnwidth}%
\begin{shaded}%
#1%
\end{shaded}%
\end{minipage}
}{
  \par
  ~\\
}


EndPreamble







# Theorems and such section
Style Corollary
Categorygymnasiekurs
Margin  First_Dynamic
LatexType   Environment
NextNoIndent0
ParIndent   MM
Align   Left
LabelType   Static
LabelSepxx

LatexName   corollary}%{
LabelString "Corollary."

ParSkip 1.5
TopSep  1
BottomSep   1
ParSep  0
KeepEmpty   1

# font & label font definition

LabelFont
SeriesBold
Color Blue
Size  Large
EndFont
End

Style Definition
CopyStyleCorollary
LatexNameDefinition}%{
LabelString  "Definition."
End

Style Sats
CopyStyleCorollary
LatexNameSats}%{
LabelString  "Sats"
End

Style Bevis
CopyStyleCorollary
LatexNameBevis}%{
LabelString  "Bevis."

LabelFont
Color  Green
EndFont
End



InsetLayout Bevis
LatexName   Bevis
LatexType   Command
LabelString  "Bevis."
LyxType custom
BgColor magenta
ForcePlain  0
End

InsetLayout Sats
copystyle   Bevis
LatexName   Sats
Labelstring "sats "
BgColor yellow
End

InsetLayout Definition
copystyle   Bevis
LatexName   Definition
Labelstring "Definition "
BgColor cyan
End




Re: Minutes typeseting

2011-01-25 Thread Dr Eberhard W Lisse
Me three!

el

On 1/25/11 11:32 AM, Xabier Abasolo wrote:
> Hello,
> 
> I was looking for templates to take or write minutes, and I found this:
> ***___CTAN home_*** ***/ **___tex-archive_*
> */ **___macros_*
> */ **___latex_*
> */ **___contrib_*
> */ minutes *
> 
> Now my questions are:
> 
> * Is this package suitable for LyX?
> * How can I add this package to LyX? I tryed with FILE / IMPORT /
>   LATEX, but I´ve got several Latex errors…
> 
> Thanks.
> 



Re: Making paragraphs stick together

2011-01-25 Thread Paul Rubin
You might take a look at
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=nopagebrk.

This can be one of those "be careful what you wish for" things; it can produce
some truly ugly pages.

/Paul






Re: Lyx2 + latex-tufte -- recurring error on rendering to DVI

2011-01-25 Thread Daron Wilson
Hi Michael,

I'm using LyX 2beta3 on OS X 10.6.6 with MacTeX also.  I have compiled a 
document with the tufte class both to DVI and to PDF.  This suggests that there 
is something specifically wrong with your file.  It could be your installation, 
but if you used the full MacTeX,  that seems doubtful.  

If you can post your actual minimal sample document for those who are the 
experts (among whom I can't be counted), someone might be more able to give a 
better analysis of the specific LyX/LaTeX item that is causing the trouble.

Daron


On 26 Jan 2011, at 01:33, Michael Gilbert wrote:

> Hi —
> 
> I am a newcomer to this list. Please forgive me in advance for missteps. This 
> looks like a really great community and I look forward to learning fast. 
> 
> I'm running Lyx2.0b3 on Mac OSX 10.6.6. I have the latest installation from 
> Mac TeX and (using TeX Live Utility) did an update of all packages. I started 
> several documents using the plain article class, using the following 
> environments: Standard, Title, Abstract, Section, Itemize, Paragraph, and 
> Float (Figure). Each has some images and a few local styles (just using the 
> LyX interface). Now I want to start making the document more attractive and I 
> want to see what I can do with the latex-tufte class. I switched the class 
> and then the errors started as soon as I try to view the DVI. Basically, I 
> get several repetitions of this pattern in the LaTeX Errors window:
> 
>   ! Argument of \MakeTextLowercase has an extra }.
>   ! Paragraph ended before \MakeTextLowercase was complete.
>   ! You can't use `math shift character $' after \the.
>   ! Argument of \@skipmath has an extra }.
>   ! Paragraph ended before \@skipmath was complete.
> 
> All five of those lead to a highlight of the same portion of text in the 
> document. Looking at the source for that portion (and the surrounding 
> source), I don't see any evidence of the errors listed. In fact, I don't see 
> any of the commands (is that the right word?) listed. I am modestly skilled 
> at some scripting languages, but a TeX newbie, so I don't really know where 
> to dig. I can add that, when I look at View Complete Log, there is actually a 
> larger pattern. (The overview LaTeX Errors window seems to leave some out.) 
> Listing only the error lines themselves (I assume those are the ones with 
> exclamation points), this is the complete pattern (after which it moves to 
> another place in the document and does the whole thing again):
> 
>   ! Argument of \MakeTextLowercase has an extra }.
>   ! Paragraph ended before \MakeTextLowercase was complete.
>   ! You can't use `math shift character $' after \the.
>   ! Argument of \@skipmath has an extra }.
>   ! Paragraph ended before \@skipmath was complete.
>   ! Undefined control sequence.
>   ! Use of \SOUL@n doesn't match its definition.
>   ! Use of \protect doesn't match its definition.
>   ! Package soul Error: Reconstruction failed.
>   ! Undefined control sequence.
>   ! Missing number, treated as zero.
>   ! Illegal unit of measure (pt inserted).
>   ! Extra }, or forgotten \endgroup.
> 
> In addition to looking at the source, I have cut back on the document so that 
> it only produces one of these, and then, eventually, none. Character by 
> character, I found some arbitrary place where it started to do this. To my 
> naive eyes, there is nothing magical about that point. I am happy to try 
> other troubleshooting techniques.
> 
> Suggestions?
> 
> TIA, to say the least
> 
> — Michael
> 
> Nonprofit Online News
> http://news.gilbert.org
> 
> 



RE: Is there a way to retain hyperlinks in pasted text?

2011-01-25 Thread Joel Schwartz
I'm not sure what a "sponsored feature" project is, but tell me more. Maybe
we can get one going.
 
Joel


  _  

From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of
Jose Quesada
Sent: Saturday, January 22, 2011 4:05 AM
To: j...@joelschwartz.com
Cc: lyx-users@lists.lyx.org
Subject: Re: Is there a way to retain hyperlinks in pasted text?


I'd love to know if this is possible; I'd even pay for it.
If you want to organize a 'sponsored feature' project, let me know.


On Fri, Jan 14, 2011 at 9:34 PM,  wrote:


I sent this query a couple of days ago, but no one responded, so I thought
I'd give it another try.
 
Let's say I copy a block of text on a web page and paste it into a lyx
document. Some of the words in this block of text include hyperlinks to
other URLs (web pages, pdf files, etc.). But when I paste the text block
into lyx, the hyperlinks are gone and just the text gets pasted. 
 
Is there a way to paste the text into lyx so that the hyperlinks are
retained in the lyx document?  Or, alternatively, do I need to recreate the
hyperlinks manually (which would be a pain)? 
 
The users' guide doesn't mention a way to retain the hyperlinks, so I
thought I'd check here to see if anyone has a way to accomplish this that's
better than re-linking each one manually.
 
Thanks,
Joel
 




-- 
Best,
-Jose 

Jose Quesada, PhD.
Research scientist,
Max Planck Institute,
Center for Adaptive Behavior and Cognition, 
Berlin
http://www.josequesada.name/
http://twitter.com/Quesada




Re: Minutes typeseting

2011-01-25 Thread Liviu Andronic

Hello

On Tue, 25 Jan 2011 10:32:35 +0100, Xabier Abasolo  
 wrote:

Hello,

I was looking for templates to take or write minutes, and I found this:
CTAN home   / tex-archive
 / macros
 / latex
 / contrib
 / minutes

Now my questions are:
*   Is this package suitable for LyX?
*   How can I add this package to LyX? I tryed with FILE / IMPORT /
LATEX, but I´ve got several Latex errors…

I doubt that the package has native LyX support, but you could still use  
it in LyX. You need to add \usepackage{minutes} in teh preamble and then  
use the package through ERT insets (Insert > TeX code).


Regards
Liviu



Thanks.




--
Using Opera's revolutionary email client: http://www.opera.com/mail/