[texhax] Re: texhax Digest, Vol 2005, Issue 329

Stephen Moye stephenmoye at mac.com
Mon Nov 14 11:14:06 CET 2005


There was a thread on CTT that discussed this. If you Google CTT for  
"include pagebreak" you will find it.

Google is our friend.

SGM


On Nov 14, 2005, at 4:42 AM, texhax-request at tug.org wrote:

> Send texhax mailing list submissions to
> 	texhax at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://tug.org/mailman/listinfo/texhax
> or, via email, send a message with subject or body 'help' to
> 	texhax-request at tug.org
>
> You can reach the person managing the list at
> 	texhax-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of texhax digest..."
>
>
> Today's Topics:
>
>    1. RE: Cross-referencing paragraphs not in the Table of	Contents
>       (Teigen Jan Gunnar)
>    2. Re: saved macro files? (Karl Berry)
>    3. Re: making flow chart with latex (Alan Litchfield)
>    4. RE: Cross-referencing paragraphs not in the Table of Contents
>       (Philip G. Ratcliffe)
>    5. Drawing a Likert scale (Chris Bergstresser)
>    6. using \maketitle for fancy titles (Shelagh Manton)
>    7. RE: Drawing a Likert scale (Philip G. Ratcliffe)
>    8. Re: making flow chart with latex (Martin Schr?der)
>    9. \include without pagebreak? (Magnus Ottosson)
>   10. Re: \include without pagebreak? (Lars Madsen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 13 Nov 2005 15:03:01 +0100
> From: "Teigen Jan Gunnar" <jan.teigen at vegvesen.no>
> Subject: [texhax] RE: Cross-referencing paragraphs not in the Table of
> 	Contents
> To: <support at tug.org>
> Message-ID:
> 	<0AEA61107C978844B0DC30EE90D23D5FB5AB81 at svvmail02.vegvesen.no>
> Content-Type: text/plain; charset="us-ascii"
>
> Hey again!
>
> Today I found a solution of the enquiry I sent you yesterday, namely
> replacing the '\addtocounter{paragraph}{1}'-statement by
> '\refstepcounter{paragraph}'. Now everything works fine!
>
> I apologize if my inquiry may have caused any problems for you.
>
> Kind regards
> Jan Teigen
>
>>  -----Opprinnelig melding-----
>> Fra: 	Teigen Jan Gunnar
>> Sendt:	12. november 2005 17:43
>> Til:	'support at tug.org'
>> Emne:	Cross-referencing paragraphs not in the Table of Contents
>>
>> Hey
>>
>> I am writing on a document for some 'rules and regulations' in pdfTex
>> where I use the paragraph sectioning command a lot. It is not
>> practical to include these paragraphs in the Table of Content since
>> they are numerous and without heading (but I include them as
>> bookmarks). However, it is 'a must' to be able cross-referencing the
>> individual paragraphs. So far, I have used a LaTex-structure like  
>> this
>> for each paragraph:
>> %**************************************************
>> \addtocounter{paragraph}{1}
>> \paragraph*{\theparagraph\hspace{-1em}}
>> \pdfbookmark[4]{\theparagraph}{\theparagraph}
>> \label{key}
>> %**************************************************
>> Text of the paragraph ..........
>>
>> This works fine for the bookmark, and also for the hyperlink when I
>> write '\ref{key}' or '\pageref{key}' (I jump to the correct
>> paragraph). However, the problem is that '\ref{key}' yields the
>> overlaying subsection-number (which is in ToC), instead of the actual
>> paragraph-number.
>>
>> I understand that this is not a bug in LaTex, just the way it is  
>> meant
>> to work. However, what I miss here is the following extention of the
>> ref-command: \ref[counter]{key}, with a counter optional (in my case
>> paragraph). Maybe this can be enabled using the \renewcommand, but I
>> don't have the skills.
>> COan you help me finding a way around this problem?
>>
>> Kind regards
>> Jan Teigen
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://tug.org/pipermail/texhax/attachments/20051113/22f88c3c/ 
> attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Sun, 13 Nov 2005 12:09:33 -0600
> From: karl at freefriends.org (Karl Berry)
> Subject: Re: [texhax] saved macro files?
> To: uwe.lueck at web.de
> Cc: texhax at tug.org, khayes at ppi2pass.com
> Message-ID: <200511131809.jADI9XL04459 at f7.net>
>
>     1. Commercial use of LaTeX may require permission from the
>     LaTeX Project Team
>
> No, it definitely doesn't.
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 14 Nov 2005 08:38:20 +1300 (NZDT)
> From: "Alan Litchfield" <alan at alphabyte.co.nz>
> Subject: Re: [texhax] making flow chart with latex
> To: <texhax at tug.org>
> Message-ID:
> 	<57156.60.234.48.114.1131910700.squirrel at webmail.ak.planet.gen.nz>
> Content-Type: text/plain; charset=iso-8859-1
>
> Sorry to drag this out folks, but Reinhard it right in what he  
> says, as are
> pretty much all the others.
>
> I have been looking at where the postings have come from and it  
> seems part of
> the issue is one of language use. English is a difficult medium and  
> written
> language poses special problems for communication. I try to  
> moderate my
> written language because I can soften what my words say when face  
> to face with
> gestures, intonation and expression.
>
> Some years ago, on this list, I was told to RTFM after asking one  
> of those
> stupid questions. I mentioned that I had already read the manual,  
> but still
> had questions because there were some parts I did not understand. I  
> suggested
> the answerer should not be so abusive as well since I was asking a  
> reasonable
> question. He was surprised I should say that and said he was only  
> making a
> suggestion with that phrase. I had to point out that RTM is a  
> suggestion, RTFM
> is being abusive. English was not his first language.
>
> I see similar parallels in this situation, and it is one where  
> sometimes the
> people who need educating are those who are communicating answers. The
> ignorant are because they do not know. The responsibility is upon  
> those who
> do.
>
> Cheers
> Alan
>
> --
> Alan T Litchfield, MNZCS
> School of Computer and Information Science
> AUT University
> http://www.aut.ac.nz/cis/
> Ph +649 921 9999 x5217
>
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 14 Nov 2005 00:12:48 +0100
> From: "Philip G. Ratcliffe" <philipratcliffe at tiscali.it>
> Subject: RE: [texhax] Cross-referencing paragraphs not in the Table of
> 	Contents
> To: "Teigen Jan Gunnar" <jan.teigen at vegvesen.no>, <support at tug.org>
> Message-ID: <AKEJLEGIKBCPGCHOGIMNMEGJDJAA.philipratcliffe at tiscali.it>
> Content-Type: text/plain;	charset="us-ascii"
>
>> I am writing on a document for some 'rules and regulations'
>> in pdfTex where I use the paragraph sectioning command a lot.
>> It is not practical to include these paragraphs in the Table
>> of Content since they are numerous and without heading (but
>> I include them as bookmarks). However, it is 'a must' to be
>> able cross-referencing the individual paragraphs. So far, I
>> have used a LaTex-structure like this for each paragraph:
>> %..................................................
>> \addtocounter{paragraph}{1}
>> \paragraph*{\theparagraph\hspace{-1em}}
>> \pdfbookmark[4]{\theparagraph}{\theparagraph}
>> \label{key}
>> %..................................................
>> Text of the paragraph ....
>> This works fine for the bookmark, and also for the hyperlink
>> when I write '\ref{key}' or '\pageref{key}' (I jump to the
>> correct paragraph). However, the problem is that '\ref{key}'
>> yields the overlaying subsection-number (which is in ToC),
>> instead of the actual paragraph-number.
>> I understand that this is not a bug in LaTex, just the way
>> it is meant to work. However, what I miss here is the
>> following extention of the ref-command: \ref[counter]{key},
>> with a counter optional (in my case paragraph). Maybe this
>> can be enabled using the \renewcommand, but I don't have the
>> skills.
>> COan you help me finding a way around this problem?
>
> Ok, what is and what isn't _generally_ included in the ToC should be
> controlled by the counter \tocdepth rather than using the starred  
> version of
> the sectioning commands (these should merely be one-offs), just as  
> what is
> as what isn't _generally_ numbered should be controlled by the counter
> \secnumdepth. This both solves your problem and allows for rapid  
> inclusion
> in the ToC as and when you should change your mind.
>
> The article class defaults are:
>
> \setcounter{secnumdepth}{3}
> \setcounter{tocdepth}{3}
>
> I presume what you need is simply to add
>
> \setcounter{secnumdepth}{4}
>
> and elimination of the superfluos lines stars and and  
> \theparagraph's etc.
>
> Cheers,  Phil Ratcliffe
>
>
>
> ------------------------------
>
> Message: 5
> Date: Sun, 13 Nov 2005 17:41:46 -0600
> From: Chris Bergstresser <chris at subtlety.com>
> Subject: [texhax] Drawing a Likert scale
> To: support at tug.org
> Message-ID: <4377CF3A.4010407 at subtlety.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi all --
>
>     I'm trying to write a set of macros to draw Likert scales, which
> look something like this:
>
>     |__|__|__|__|
>     |  |  |  |  |
>
>     A  B  C  D  E
>
>     However, I can't seem to get the alignment in the tabular
> environment to work right.  I've tried (example reduced to 2 items):
>
> \begin{tabular}{cccccc}
> 	& \vline\rule{0cm}{0.2cm} & & & \vline\rule{0cm}{0.2cm} & \\
> 	\cline{2-5}
> 	& \vline\rule{0cm}{0.2cm} & & & \vline\rule{0cm}{0.2cm} & \\
> 	\multicolumn{3}{c}{A} & \multicolumn{3}{c}{B} \\
> \end{tabular}
>
>    But the centerline overhangs the ends, like so:
>
>    _|__|_
>     |  |
>
>     A  B
>
>     Changing the first line to "\begin{tabular}{cc@{}ccc@{}c}"  
> results in:
>
>    _|__|
>     |  |
>    A  B
>
>     Which is also just not right.
>
>     Can anyone help?
>
> -- Chris
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 14 Nov 2005 13:58:51 +1100
> From: Shelagh Manton <oneida at tpg.com.au>
> Subject: [texhax] using \maketitle for fancy titles
> To: texhax at tug.org
> Message-ID: <pan.2005.11.14.02.58.49.13047 at tpg.com.au>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I am trying to produce a leaflet (using leaflet package) and I  
> wanted to
> have the first page as a title page but with a fancy title. I  
> thought I
> would struggle through the colortbl package to make a colourful box to
> enclose my title in. However before I started I was wondering if  
> this is
> the best way. Or to put it another way, can \maketitle handle complex
> tabular macros or would it just choke? I managed a rotate  
> environment but
> y initial experiments with colortbl seem dodgy. (but of course that  
> could
> just be my poor coding) Has anyone had experience with this before?
>
> Shelagh
>
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 14 Nov 2005 07:08:14 +0100
> From: "Philip G. Ratcliffe" <philipratcliffe at tiscali.it>
> Subject: RE: [texhax] Drawing a Likert scale
> To: "Chris Bergstresser" <chris at subtlety.com>, <support at tug.org>
> Message-ID: <AKEJLEGIKBCPGCHOGIMNMEHADJAA.philipratcliffe at tiscali.it>
> Content-Type: text/plain;	charset="iso-8859-1"
>
>>     I'm trying to write a set of macros to draw Likert scales, which
>> look something like this:
>>
>>     |__|__|__|__|
>>     |  |  |  |  |
>>
>>     A  B  C  D  E
>>
>>     However, I can't seem to get the alignment in the tabular
>> environment to work right.  I've tried (example reduced to 2 items):
>>
>> \begin{tabular}{cccccc}
>> 	& \vline\rule{0cm}{0.2cm} & & & \vline\rule{0cm}{0.2cm} & \\
>> 	\cline{2-5}
>> 	& \vline\rule{0cm}{0.2cm} & & & \vline\rule{0cm}{0.2cm} & \\
>> 	\multicolumn{3}{c}{A} & \multicolumn{3}{c}{B} \\
>> \end{tabular}
>>
>>    But the centerline overhangs the ends, like so:
>>
>>    _|__|_
>>     |  |
>>
>>     A  B
>>
>>     Changing the first line to "\begin{tabular}{cc@{}ccc@{}c}"  
>> results in:
>>
>>    _|__|
>>     |  |
>>    A  B
>>
>>     Which is also just not right.
>>
>>     Can anyone help?
>
> Try this
>
> \begin{tabular}{|p{2em}|p{2em}|l}
>   & & \\
>   \cline{1-2}
>   & & \\
>   \multicolumn{1}{l}{\llap{A\,}} &
>   \multicolumn{1}{l}{\llap{B\,}} &
>   \multicolumn{1}{l}{\llap{C\,}} \\
> \end{tabular}
>
> Cheers,  Phil Ratcliffe
>
>
>
> ------------------------------
>
> Message: 8
> Date: Mon, 14 Nov 2005 01:33:01 +0100
> From: Martin Schr?der <martin at oneiros.de>
> Subject: Re: [texhax] making flow chart with latex
> To: texhax at tug.org
> Message-ID: <20051114003301.GB20516 at lucien.oneiros.kn-bremen.de>
> Content-Type: text/plain; charset=us-ascii
>
> On 2005-11-14 08:38:20 +1300, Alan Litchfield wrote:
>> suggestion with that phrase. I had to point out that RTM is a  
>> suggestion, RTFM
>> is being abusive. English was not his first language.
>
> IBTD: The F is for "Fine" ... :-)
>
> Best
>     Martin
> -- 
>                     http://www.tm.oneiros.de
>
>
>
> ------------------------------
>
> Message: 9
> Date: Mon, 14 Nov 2005 10:15:18 +0100
> From: Magnus Ottosson <it3otma at ituniv.se>
> Subject: [texhax] \include without pagebreak?
> To: texhax at tug.org
> Message-ID: <1131959718.3991.4.camel at gobo.grand1982.com>
> Content-Type: text/plain
>
> Hi!
>
> I'm about to write an article and decided to use this template:
> http://tug.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
>
> However since we are several people that will work on the article
> simultainiously I want to divide the template into several files using
> \include{}. I discovered that using \include{} automaticly includes a
> pagebreak wich is not very good in this case. Is there a way I can
> include a file wihtous automaticly insert a pagebreak for each  
> include?
>
> -- 
> Magnus Ottosson
>
>
>
>
> ------------------------------
>
> Message: 10
> Date: Mon, 14 Nov 2005 10:40:26 +0100 (CET)
> From: Lars Madsen <daleif at imf.au.dk>
> Subject: Re: [texhax] \include without pagebreak?
> To: Magnus Ottosson <it3otma at ituniv.se>
> Cc: texhax at tug.org
> Message-ID: <Pine.LNX.4.61.0511141040060.32419 at gloin.imf.au.dk>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> Magnus Ottosson :
>
>> Hi!
>>
>> I'm about to write an article and decided to use this template:
>> http://tug.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
>>
>> However since we are several people that will work on the article
>> simultainiously I want to divide the template into several files  
>> using
>> \include{}. I discovered that using \include{} automaticly includes a
>> pagebreak wich is not very good in this case. Is there a way I can
>> include a file wihtous automaticly insert a pagebreak for each  
>> include?
>>
>
> use \input instead of \include
>
>
> /daleif
>
> ``You cannot help men permanently by doing for them
> what they could and should do for themselves. ''
>   -- Abraham Lincoln
>
>
>
> ------------------------------
>
> _______________________________________________
> texhax mailing list
> texhax at tug.org
> http://tug.org/mailman/listinfo/texhax
>
> End of texhax Digest, Vol 2005, Issue 329
> *****************************************



More information about the texhax mailing list