Re: [SLUG] Latex question: chapter style

2007-10-10 Thread Nick Croft
* Alan L Tyree ([EMAIL PROTECTED]) wrote:
 SNIP

 the Memoir class seems to
 provide facilities to make this kind of design easy: see page 86 of the
 Memoir manual.
 
 Cheers,
 Alan
 
Thanks for that Alan.

I am looking at memman.pdf right now, and am printing it out the relevant
pages. 

Nick
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Latex question: chapter style

2007-10-09 Thread Nick Croft
Hi

I'm using latex to (re-)produce a technical manual which is typeset in a 
compact format,
and I wish to keep close to the original formatting.

The chapter style is quite simple but I can't find the way to modify any of the
available packages to reproduce it.

So far I've resorted to formatting the chapter heading in-line, as it occurs, 
rather that using
a LaTeX technique.

The look of the chapter heading is such that the 'chaptername' and 
'chapternumber' in \small size, to the left, and the 'chaptertitle' is
centered, in \LARGE small caps and bold.

The following lines produce the right format:

chapter 1
\vspace{-2mm}
\begin{center}
  \LARGE\textsc{\textbf{Getting Started}}
\end{center}
\vspace{2mm}

However I think I should be doing it the latex way...

There seems to be plenty of help available for fancy chapter styles. What I
want is so simple that I haven't been able to find it by googling. The
essential difficulty is that the chapter name and number are to be on the left,
while the chapter title is to be centered.

Any ideas? Or do I finally buy the Latex Companion?

Nick
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Latex question: chapter style

2007-10-09 Thread Mike Lake
Hi

 The chapter style is quite simple but I can't find the way to modify
 any of the available packages to reproduce it.

Are you using the Book class or the Article class in the begindocument? 

One can define your own command for this
\newcommand{\mychap}[1]{%
Chapter \thechapter
\vspace{-2mm}
\begin{center}
\LARGE\textsc{\textbf{#1}}
\end{center}
\vspace{2mm}
}

and use it like \mychap{Getting Started}

or you can redefine the \chapter command.
It's tricky. This is what I did ages ago. Have not tested it again.

\makeatletter
%Goosens p 28,29
\renewcommand{\chapter}{\newpage\secdef\cmda\cmdb}
\newcommand{\cmda}[2][default]{%
   \begin{center}%
   \sffamily\Large\bfseries #2%% Arg 2 - Main Title
   \end{center}%
   \addcontentsline{toc}{section}{#1}% % Arg 1 - TOC
}
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Latex question: chapter style

2007-10-09 Thread Alan L Tyree
SNIP


 There seems to be plenty of help available for fancy chapter
styles.
 What I want is so simple that I haven't been able to find it by
 googling. The essential difficulty is that the chapter name and
 number are to be on the left, while the chapter title is to be
 centered.
 
 Any ideas? Or do I finally buy the Latex Companion?

Hi Nick,
I haven't actually tried it myself, but the Memoir class seems to
provide facilities to make this kind of design easy: see page 86 of the
Memoir manual.

Cheers,
Alan


 
 Nick
 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
 


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel: +61 2 4782 2670Mobile: +61 427 486 206
Fax: +61 2 4782 7092FWD: 615662
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Latex question: chapter style

2007-10-09 Thread Joseph Goncalves
On Tue, 9 Oct 2007, Nick Croft wrote:
 Hi

 I'm using latex to (re-)produce a technical manual which is typeset
 in a compact format, and I wish to keep close to the original
 formatting.

 The chapter style is quite simple but I can't find the way to modify
 any of the available packages to reproduce it.

 So far I've resorted to formatting the chapter heading in-line, as it
 occurs, rather that using a LaTeX technique.

 The look of the chapter heading is such that the 'chaptername' and
 'chapternumber' in \small size, to the left, and the 'chaptertitle'
 is centered, in \LARGE small caps and bold.

I believe you need to use the titlesec package. Here is the code that 
I used to colourise the section and subsection commands:

\titleformat*{\section}{\Large\bf\color{clrheadings}}
\titleformat*{\subsection}{\large\bf\color{clrheadings}}

This is the documentation on the package:
http://www.tex.ac.uk/tex-archive/macros/latex/contrib/titlesec/titlesec.pdf

Now when you use \section or \subsection then they will use the 
perscribed style you defined.

This is a good faq that I use regarding your question:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=secthead

Or in general look at for future questions:
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes

Regards
-- 
Joseph Goncalves
mailto:[EMAIL PROTECTED]
66D6 71CF 87F9 6B17 6824 C692 9FF0 1DAF 7DAE E661


signature.asc
Description: This is a digitally signed message part.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] latex question

2005-10-25 Thread Taryn East
* Michael Lake [EMAIL PROTECTED] spake thus:
 \setlength{\unitlength }{1mm}
 \begin{picture}(10,10) % width=10x10 
 \put(0,0){\makeleftpage }
 \put(140,0){\makerightpage } % puts 140mm to the right
 \end{picture}

erg - nope, I'm afraid that doesn't work as well as you expect. It's not
only overlapping left-right but also all stuck in the middle at the top
of the page :P

sorry.

Taryn

-- 
This .sig temporarily out-of-order.
We apologise for any inconvenience
- The Management
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] latex question

2005-10-25 Thread Angus Lees
At Tue, 25 Oct 2005 12:37:07 +1000, Taryn East wrote:
 \begin{tabular}{l|r}
   \makeleftpage  \makerightpage \\
 \end{tabular}

You could also use something explicit (and simpler?) like this:
 \makeleftpage \hspace{3mm} \vrule \hspace{3mm} \makerightpage

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] latex question

2005-10-25 Thread Taryn East
* Ian Wienand [EMAIL PROTECTED] spake thus:
 Looking back at your original example, Latex is assuming you are using
 a portrait page, which isn't wide enough to get all that stuff in.
 Thus Latex then just shoves the boxes ontop of each other.

a good idea, but sadly not the case - my real .tex is in landscape
format and still suffers from the same problem :(

 You can check the width with the \showthe command (\showthe\textwidth)
 to make sure it does look wide.

it seems to break on this while generating the page - pesumably this is
normal behaviour.
I get a text width of 758.835pt... which sounds like a large number and
therefore plausible - but I admit my in-brain conversion function is
dodgy.



WIERDWIERDWIERD! I've suddenly got it to work and I'm not yet sure why.
:(

I was preparing an example to show how I changed it - I was using the
parboxes to surround them and was going to compare the parboxes vs the
(then) broken minipages... but my example worked where it shouldn't
have:


\newcommand{\makerightpage}{
\begin{minipage}{0.25\textwidth}
 whatever\\
 whatever\\
 whatever\\
\end{minipage}
}
\newcommand{\makeleftpage}{
\begin{minipage}{0.75\textwidth}
some really long line to show that the line length pushes it out
beyond the edge of the right-hand section when it's not working.
\end{minipage}
}

\begin{tabular}{l|r}
\makeleftpage  \makerightpage
\end{tabular}


So I put in the data from my more complex real invoice and it works too.
I'm honestly not sure what I *wasn't* doing the last time that is now
fixed... this is annoying as I'm not sure, therefore how to avoid it in
future... :(

though it does solve my current problem, at least. :)



Thanks for helping get my thought processes moving through this one.
Taryn

-- 
This .sig temporarily out-of-order.
We apologise for any inconvenience
- The Management
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] latex question

2005-10-25 Thread Taryn East
* Angus Lees [EMAIL PROTECTED] spake thus:
 At Tue, 25 Oct 2005 12:37:07 +1000, Taryn East wrote:
  \begin{tabular}{l|r}
\makeleftpage  \makerightpage \\
  \end{tabular}
 
 You could also use something explicit (and simpler?) like this:
  \makeleftpage \hspace{3mm} \vrule \hspace{3mm} \makerightpage

ah thank you - I like that - much simpler, and steers clear of the
horrible HTML-ish tables-as-layout thing to.

Thanks,
Taryn


-- 
This .sig temporarily out-of-order.
We apologise for any inconvenience
- The Management
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] latex question

2005-10-24 Thread Taryn East
Hi all, I'm having an annoying minor issue with latex that I just can't
seem to get past and was hoping to tap the collective wisdom of slug
once more for a Clue.

I'm writing a template for an invoice that we will send to the customer.
It's in landscape format and has a lefthand section (with all the
details fo the order and price etc - which the customer keeps) and a
righthand section (which is a summary section that is torn off by the
customer and sent in with their payment).

Each side has some complicated stuff in it for layout, so I decided to
write two \minipage sections and then use a tabular for left/right
layout. I've put each \minipage into its own \newcommand just to make
layout look simpler so at its simplest form I have:

\begin{tabular}{l|r}
  \makeleftpage  \makerightpage \\
\end{tabular}


Now when the leftpage function has just, say, some text in it - there's
no problem. They display nicely to the left/right of each other - no
matter how complicated the right-hand page is. However, the moment that
I added the \minipage to the left-hand side it all broke. the left and
right-hand side overlap one another (the text printing over the top of
the other text).


\newcommand{\makerightpage}{
\begin{minipage}{0.25\textwidth}
   whatever\\
   whatever\\
   whatever\\
\end{minipage}
}

so this works:

\newcommand{\makeleftpage}{
some text here
}

and this doesn't:

\newcommand{\makeleftpage}{
\begin{minipage}{0.75\textwidth}
   whatever\\
   whatever\\
   whatever\\
\end{minipage}
}


though it's hard to see as the line doesn't expand across the whole
page. A more complete example is given at the bottom of this email so
you can compile it and see what it looks like.




is there something that I have misunderstood in how these things work?

Does anybody know of the way that it should be done instead?


Cheers and thanks,
Taryn


\documentclass[10pt]{article}
\usepackage{a4}
\begin{document}

\newcommand{\makerightpage}{
\begin{minipage}{0.25\textwidth}
   whatever\\
   whatever\\
   whatever\\
\end{minipage}
}

\newcommand{\makeleftpage}{
\begin{minipage}{0.75\textwidth}
%%% Header section %%%
\begin{tabular}{lcr} 
   \parbox{5cm}{ % customer details and address
   Insured Name here\\
   Customer name here\\
   Street address here\\
   Suburb, State PCD}

Logo here

\begin{tabular}{ll} % policy identifiers
   Date:policy date here\\
   Invoice No:  0510abcdef\\
   Policy No:   NSW 0510 ghijkl \\
   Amount:  \$ AAA.aa\\
\end{tabular}
\\ %%% end of header section row %%%
\end{tabular}
\end{minipage}
}

\begin{tabular}{l|r}
  \makeleftpage  \makerightpage \\
\end{tabular}

\end{document}








-- 
This .sig temporarily out-of-order.
We apologise for any inconvenience
- The Management
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] latex question

2005-10-24 Thread Ian Wienand
On Tue, Oct 25, 2005 at 12:37:07PM +1000, Taryn East wrote:
 I'm writing a template for an invoice that we will send to the customer.
 It's in landscape format and has a lefthand section (with all the
 details fo the order and price etc - which the customer keeps) and a
 righthand section (which is a summary section that is torn off by the
 customer and sent in with their payment).

I'm not sure about why the minipages overlap, but I had to do
something similar once and I used multicol to separate out the page.
It has some disadvantages (watch out putting images in, you need to
use a special float).  You can see the original stuff at

http://www.gelato.unsw.edu.au/cgi-bin/viewcvs.cgi/cvs/gelato/posters/2005-SanJose/

but your example looks something like

---

\documentclass[10pt]{article}
\usepackage[a4paper,landscape,noheadfoot,margin={0.25in,0.25in}]{geometry}
\usepackage{nopageno}
\usepackage{multicol}
\begin{document}

\newcommand{\makerightpage}{
   whatever\\
   whatever\\
   whatever\\
}

\newcommand{\makeleftpage}{
%%% Header section %%%
\begin{tabular}{lcr}
% customer details and address
   Insured Name here\\
   Customer name here\\
   Street address here\\
   Suburb, State PCD

Logo here

\begin{tabular}{ll} % policy identifiers
   Date:policy date here\\
   Invoice No:  0510abcdef\\
   Policy No:   NSW 0510 ghijkl \\
   Amount:  \$ AAA.aa\\
\end{tabular}
\\ %%% end of header section row %%%
\end{tabular}
}

\begin{multicols}{2}
\setlength{\columnseprule}{0.4mm}
\makeleftpage

\columnbreak

\makerightpage

\end{multicols}

\end{document}

---

try something like

$ pslatex test.tex
$ dvips -Ppdf -t landscape  test.dvi
$ ps2pdf test.ps

-i
[EMAIL PROTECTED]
http://www.gelato.unsw.edu.au


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] latex question

2005-10-24 Thread Taryn East
* Ian Wienand [EMAIL PROTECTED] spake thus:
 I'm not sure about why the minipages overlap, but I had to do
 something similar once and I used multicol to separate out the page.

I've tried it a bit more using multicol (now putting in stuff in the
right-hand column) and unfortunately they still overlap :(
only now the column-widths are not controlled in th way they were for the
tabular environment :(

sigh

any other ideas?

any way that I can contrain the width fo the lot? I'd put it all within
a parbox if it wasn't fragile - I'd put it all inside a fixed-width
one-cell tabular* environment but that is so inelegent :P
and so like the html-way of doing things.

Surely there has to be a way of doing this that isn't so ugly :(

Taryn



-- 
This .sig temporarily out-of-order.
We apologise for any inconvenience
- The Management
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] latex question

2005-10-24 Thread Ian Wienand
On Tue, Oct 25, 2005 at 02:04:40PM +1000, Taryn East wrote:
 only now the column-widths are not controlled in th way they were for the
 tabular environment :(

yes, multicol doesn't do column widths.

 any other ideas?

Looking back at your original example, Latex is assuming you are using
a portrait page, which isn't wide enough to get all that stuff in.
Thus Latex then just shoves the boxes ontop of each other.

I think what you need to do is make sure you have something like

\usepackage[a4paper,landscape,noheadfoot,margin={0.25in,0.25in}]{geometry}

to setup landscape mode (and thus set \textwidth properly to something
nice and wide).  Make sure you don't include anything like
\usepackage{a4} after it, because that will reset \textwidth.

You can check the width with the \showthe command (\showthe\textwidth)
to make sure it does look wide.

-i


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] latex question

2005-10-24 Thread Michael Lake

Taryn East wrote:

* Ian Wienand [EMAIL PROTECTED] spake thus:


I'm not sure about why the minipages overlap, but I had to do
something similar once and I used multicol to separate out the page.


I've tried it a bit more using multicol (now putting in stuff in the
right-hand column) and unfortunately they still overlap :(
only now the column-widths are not controlled in th way they were for the
tabular environment :(

sigh
any other ideas?


Try this:

\setlength{\unitlength }{1mm}
\begin{picture}(10,10) % width=10x10 
\put(0,0){\makeleftpage }

\put(140,0){\makerightpage } % puts 140mm to the right
\end{picture}

Mike
--
Michael Lake
Chemistry, Materials  Forensic Science, UTS
Ph: 9514 1725 Fx: 9514 1460
[pls ignore idiot lawyer's msg below]



--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Latex question: fi -- theta

2005-03-15 Thread Angus Lees
At Fri, 11 Mar 2005 10:06:26 +1100, Nick Croft wrote:
 Recently any occurrence of `fi' is rendered by a greek letter. So a word
 like Office become OfØce. I'm not sure what to switch off or what kind of
 package I'm using which does this.
 
 Typical preamble:
 \documentclass[12pt]{article}
 \renewcommand{\familydefault}{put}
 \usepackage{color}
 \pagestyle{empty}
 \begin{document}

I would guess that your font encoding has changed somehow.  fi is a
very common ligature, and if your font encoding is wrong (or virtual
font out of whack) then you could end up with the wrong glyph
everywhere that ligature is used.

If you add \useencoding[T1] to your preamble, you'll end up using some
different font files that may bypass the problem.  Either way, I'd
start filing a bug with your distro provider.


To test TeX's understanding of a font, you should be able to run tex
testfont and give the answer putr7t or something when asked which
font to test.  At the * prompt type \sample\bye and you'll get a
dvi which shows the full font table (and a sample piece of text).  If
this.  In OT1 encoding (the LaTeX default) table, I believe the fi
ligature appears in position 014.

-- 
 - Gus

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Latex question: fi -- theta

2005-03-15 Thread Nick Croft
* Angus Lees ([EMAIL PROTECTED]) wrote:
 
 If you add \useencoding[T1] to your preamble, you'll end up using some
 different font files that may bypass the problem.  

Thanks Gus, the encoding maybe influenced by me installing the ucs
package, although it's hard to see how if I don't call it specifically.
'll check out the effect of adding the encoding command when I clock in
tomorrow.

 Either way, I'd start filing a bug with your distro provider.
 
Soon... the setup at home works fine. The machine at work is sort of 
a loose parallel with the one at home, but things can get our of sync when
you're busy..

They're both debian unstable.

 To test TeX's understanding of a font, you should be able to run tex
 testfont and give the answer putr7t or something when asked which
 font to test.  At the * prompt type \sample\bye and you'll get a
 dvi which shows the full font table (and a sample piece of text).  If
 this.  In OT1 encoding (the LaTeX default) table, I believe the fi
 ligature appears in position 014.
 
Interesting. putr7t as you suggest, shows the `fi' ligature. putb8r 
has f-theta in the same cell. More to find out here. 

Nick
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Latex question: fi -- theta

2005-03-13 Thread Nick Croft
* Michael Lake ([EMAIL PROTECTED]) wrote:
 On Sat Mar 12, Nick Croft wrote:

 Ok then it's the fact that you don't have that glyph on your work setup.
Mmm. Odd though. I'm back to thinking I need to install potato first, 
then upgrade to the latest, putting a couple of programs on hold.
 
 The fix so far is to substitute for `fi' f\hspace{0mm}i . 
 
 Excellent solution. You can shorten that to
 f{}i
 
That _is_ neat. 

N
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Latex question: fi -- theta

2005-03-12 Thread Nick Croft
* Michael Lake ([EMAIL PROTECTED]) wrote:
 On Fri Mar 11, Nick Croft wrote:
 Having a little trouble here with latex. 

 
 I am not sure when you mentioned mailing them to work whether you 
 mail the test.tex file or the test.dvi file. 

Mike, thanks for your thoughts.

It's the .tex file I send. And sorry, I change it at the other end,
because unfortunately I can't get Utopia to work there, the installation 
at work is more recent and `put' (ps Utopia) is next to impossible to 
install and make work. Fortunately the home system is about 5 years old
(with upgrades to unstable) and utopia is still available.

 Also I dont have a font family called put. What happens if you have 
 instead cmr or cmss - does the problem go away?

No, unfortunately.

 What happens if you make the dvi file a PostScript file and send it to 
 work?

I'll give that a go, it's an idea to work on. Never thought of it, thanks.

BTW with regard to Utopia, it relates to a theme I can't get out of my head,
that the Golden Age is over. Good working programmes are `improved' beyond
necessity. (I posted a lament on this about 6 months ago, and only got one
response). In the case of Utopia, it used to come with tetex-extra, but
since some licensing matter cam up, it is not standard issue. It's rumoured
to be used by the fourier-Gutenberg package, but you still need to get it
somewhere else, like http://www.tug.org/tex-archive/fonts/utopia/ but I
can't get them to be recognised, even following the instructions in
http://www.ctan.org/installationadvice/#installationguidelines?action=/index.html
and using updmap. 

But I digress.

The fix so far is to substitute for `fi' f\hspace{0mm}i . Neat? Well it
works. Typical phrase: 'Supply and fit in your Office. Final service call'.

Nick
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Latex question: fi -- theta

2005-03-12 Thread Michael Lake
On Sat Mar 12, Nick Croft wrote:
It's the .tex file I send. And sorry, I change it at the other end,
because unfortunately I can't get Utopia to work there, the installation
at work is more recent and `put' (ps Utopia) is next to impossible to
install and make work. Fortunately the home system is about 5 years old
(with upgrades to unstable) and utopia is still available.
Ok then it's the fact that you don't have that glyph on your work setup.
 snipped
The fix so far is to substitute for `fi' f\hspace{0mm}i . Neat? Well it
works. Typical phrase: 'Supply and fit in your Office. Final service call'.
Excellent solution. You can shorten that to
f{}i
Just do a sed on your file so that fi becomes f{}i
Mike
--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Latex question: fi -- theta

2005-03-11 Thread Nick Croft
Morning,

Having a little trouble here with latex. I write things up at home,
check in xdvi, then mail the tex files to work for printing.

Recently any occurrence of `fi' is rendered by a greek letter. So a word
like Office become OfØce. I'm not sure what to switch off or what kind of
package I'm using which does this.

Typical preamble:

\documentclass[12pt]{article}
\renewcommand{\familydefault}{put}
\usepackage{color}
\pagestyle{empty}
\begin{document}

Is latex using math mode without me asking for it? If so, can I 
specify text mode only?

Hope someone knows.

Nick

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] LateX question, tabular and raggedright.

2005-02-19 Thread Michael Lake
Hi all
So I'm mooching through TLC (second edition). Page 244 goes
on about the new improved array and I decided to fix something
that's been niggling me for some time.
.
\begin{tabular}{{\raggedright}p{0.33\textwidth}{\raggedright}p{0.33\textwidth}{\raggedright}
p{0.3\textwidth}}
Haemorrhages. Error message says that a  has been changed. No,
it hasn't.
The array package redines the newline // so if you use it as the last 
declaration in a table it will not work.
You need to reset the original value for the newline. Lookup PreserveBackspace 
in Goosens.
Add the following command to the top of your document:
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\let\PBS=\PreserveBackslash % shorthand for the above
\begin{tabular}{|{\raggedright}p{0.33\textwidth}|{\raggedright}p{0.33\textwidth}|{\PBS\raggedright}
p{0.33\textwidth}|}
This is some long text to check column alignment. We want to see if its 
justified or set to ragged rig
ht - much better for narrow cols.  two  three
\end{tabular}
The above will now run OK. I jus added the vertical bars to check the ragged 
right was working.
And I'd like to set the command just the once (rather than fiddling each entry).
add the folloing to the top:
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\let\PBS=\PreserveBackslash % shorthand for the above
\begin{tabular}{|R|R|R|}
This is some long text to check column alignment. We want to see if its 
justified or set to ragged rig
ht - much better for narrow cols.  two  three
\end{tabular}
Mike
--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] LateX question, tabular and raggedright.

2005-02-17 Thread Bill Bennett
So I'm mooching through TLC (second edition). Page 244 goes
on about the new improved array and I decided to fix something
that's been niggling me for some time.

The old:
\begin{tabular}{p{0.33\textwidth}p{0.33\textwidth}p{0.33\textwidth}}

First amendment:
\begin{tabular}{{\raggedright}p{0.33\textwidth}p{0.33\textwidth}p{0.33\textwidth}}

Works.

Second amendment:
\begin{tabular}{{\raggedright}p{0.33\textwidth}{\raggedright}p{0.33\textwidth}p{0.33\textwidth}}

Works.

Third amendment:
\begin{tabular}{{\raggedright}p{0.33\textwidth}{\raggedright}p{0.33\textwidth}{\raggedright}p{0.33\textwidth}}

Haemorrhages. Error message says that a  has been changed. No,
it hasn't.

Has anybody seen this before? In any event, I'd still
like 3 paragraph-type columns wherein the text is set with
\raggedright. And I'd like to set the command just the once
(rather than fiddling each entry).

Any help/suggestions will be greatfully received and looked over,

Regards,

Bill Bennett.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Latex question. On arrows.

2004-10-12 Thread Bill Bennett
@ and @ do *not* produce arrows that extend
automatically to accommodate unusually wide subscripts
and superscripts, page 226 of TLC notwithstanding.

I have a feeling that I've seen this before, although
long ago and far away.

Can anyone help, please?

Regards,

Bill Bennett.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Latex question. On arrows.

2004-10-12 Thread Michael Lake
Bill Bennett wrote:
@ and @ do *not* produce arrows that extend
automatically to accommodate unusually wide subscripts
and superscripts, page 226 of TLC notwithstanding.
I have a feeling that I've seen this before, although
long ago and far away.
Can anyone help, please?

\usepackage{amscd}   % You need this and the CD environment
\begin{equation}
\begin{CD}
A @long\ superscript B \\
A @long\ subscript B
\end{CD}
\end{equation}
The LaTeX Companion wasn't very clear about this. It took me a while to 
get it working even reading TLC.

Mike
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] LaTeX question, Linux command.

2003-08-29 Thread Anthony Wood
On Tue, Aug 26, 2003 at 09:10:16AM +1000, Angus Lees wrote:
 At Mon, 25 Aug 2003 17:41:14 +1000, Michael Lake wrote:
  Bill Bennett wrote:
   I was going to use a .jpg file in a figure in a LaTeX document,
   on the grounds that an.eps file would be too big.
  
  I don't have my cp of Goosens here to look up the graphics rule but it 
  looks like you are wanting to use latex and generate postscript. An eps 
  is not necessarily too big. Both convert and jpg2eps (which might even 
  already be on your system as it comes with many teTeX distributions) 
  just encapsulates the binary jpg and it wont be much bigger at all than 
  the jpg. Then you wont need the graphics rule at all.
 
 . also if you're aiming for postscript output, the jpg will have to
 be converted to postscript at some point in the process.
 
 (iirc, PDF can embed a jpg directly so thats a different story)

pdflatex does this.  pdflatex can't do the jpegs straight out of
my camera for some reason.

jpeg2ps (debian woody/non-free)

DESCRIPTION
   jpeg2ps converts JPEG files to PostScript  Level  2  or  3
   EPS.  In  fact,  jpeg2ps  is  not really a converter but a
   wrapper: it reads the image parameters  (width,  height,
   number  of  color  components)  in a JPEG file, writes the
   according EPS header and then copies the  compressed  JPEG
   data  to  the  output  file.  Decompression is done by the
   PostScript interpreter (only  PostScript  Level  2  and  3
   interpreters  support JPEG compression and decompression).

-- 
Woody
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] LaTeX question, Linux command.

2003-08-29 Thread Bill Bennett
 I don't have my cp of Goosens here to look up the graphics rule
 but it  looks like you are wanting to use latex and generate
 postscript. An eps is not necessarily too big. Both convert
 and jpg2eps (which might even  already be on your system as
 it comes with many teTeX distributions) just encapsulates the
 binary jpg and it wont be much bigger at all than the jpg. Then
 you wont need the graphics rule at all.

Well, I'd *better* look at jpg2eps (it isn't on our machine),
cause the jpg file was 452731 bites. The corresponding eps was
29969362 bites. (It was a photograph).

Regards,

Bill Bennett.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] LaTeX question, Linux command.

2003-08-28 Thread Angus Lees
At Mon, 25 Aug 2003 17:41:14 +1000, Michael Lake wrote:
 Bill Bennett wrote:
  I was going to use a .jpg file in a figure in a LaTeX document,
  on the grounds that an.eps file would be too big.
 
 I don't have my cp of Goosens here to look up the graphics rule but it 
 looks like you are wanting to use latex and generate postscript. An eps 
 is not necessarily too big. Both convert and jpg2eps (which might even 
 already be on your system as it comes with many teTeX distributions) 
 just encapsulates the binary jpg and it wont be much bigger at all than 
 the jpg. Then you wont need the graphics rule at all.

.. also if you're aiming for postscript output, the jpg will have to
be converted to postscript at some point in the process.

(iirc, PDF can embed a jpg directly so thats a different story)

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] LaTeX question, Linux command.

2003-08-25 Thread Bill Bennett
I was going to use a .jpg file in a figure in a LaTeX document,
on the grounds that an.eps file would be too big.

So I copied the method from Keith Reckdahl's Using Imported Graphics in LaTeX2e, ie.,

\documentclass[dvips,11pt]{report}
\usepackage{graphicx}

then

use convert myfile.jpg myfile.eps

to get a Bounding Box line, which subsequently becomes the
only line in myfile.jpg.bb

(and deleted myfile.eps)

then 

\DeclareGraphicsRule{.jpg}{eps}{.jpg.bb}{`convert #1 'eps:-' }

What *should* happen is that, at dvips, this latter command
translates the .jpg file into an .eps file (specified by
the eps: option) and sends the result to standard output
(specified by the - specification).

Except that it doesn't.

What I get is:---

dvips: Failure to execute convert Myfile.jpg 'eps:-'; continuing

I have this feeling that something is wrong with the
\DeclareGraphicsRule in that part {`convert #1 'eps:-' }.

Could anyone help, please?

Regards,

Bill Bennett.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] LaTeX question, Linux command.

2003-08-25 Thread Michael Lake
Bill Bennett wrote:
 I was going to use a .jpg file in a figure in a LaTeX document,
 on the grounds that an.eps file would be too big.

I don't have my cp of Goosens here to look up the graphics rule but it 
looks like you are wanting to use latex and generate postscript. An eps 
is not necessarily too big. Both convert and jpg2eps (which might even 
already be on your system as it comes with many teTeX distributions) 
just encapsulates the binary jpg and it wont be much bigger at all than 
the jpg. Then you wont need the graphics rule at all.

 So I copied the method from Keith Reckdahl's Using Imported Graphics in LaTeX2e, 
 ie.,
...

Mike



UTS CRICOS Provider Code:  00099F

DISCLAIMER

This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.
If you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly,
and with authority, states them to be the views the University of
Technology Sydney. Before opening any attachments, please check them for
viruses and defects.



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug