On Sat, Jul 4, 2009 at 7:52 AM, MAT<magdale...@gmail.com> wrote:
>
> Hello, I'm not a LaTeX expert, all I do with it since now, were short
> articles.
> Now, I will write a longer piece of text. I found out tufte-latex
> class/style - it looks nice, and I would like to use it.
> But when I compile tex source, I got a text looks like in BE. I could
> not use a \part tag here, because I receive an error.
The \part command should work, but there was a bug in the latest
released version of the code. I've fixed this bug since, but haven't
yet released a new version to CTAN. You can check out the latest code
at http://code.google.com/p/tufte-latex/source/checkout, if you'd
like.
> I would like a style like in VDQI, mostly because of more detailed
> contents (table of content), and because I prefer serif fonts.
> What should I add, install or uncomment or so on to have such a view
> (VDQI)?
> I tried to read this group's articles, search the net - but I can't
> find such an example or information how to. I can't find how to switch
> to VDQI layout...
Right now the styles follow BE. I would like to add code at some
point to handle the VDQI (and other book) styles, but haven't had time
yet.
I think most of the design elements and layouts are the same for VDQI
and BE. Glancing through my copy of VDQI, the differences that jump
out at me are:
* the title page
* the table of contents
* the section headings are bold
* the chapters are numbered
* there are two parts
I don't have time to address all of the details in each of these
issues, but some of the following code may help you get started on the
modifications you want. You can add these modifications to a file
named "tufte-book-local.tex" and drop the file into the same place as
your document's .tex file and it should get loaded automatically.
%%
% VDQI title page
\renewcommand{\maketitlepage}[0]{%
\cleardoublepage%
{%
\begin{fullwidth}%
\fontsize{24}{30}\selectfont\par\noindent\thanklessauthor%
\vspace{1.75in}%
\fontsize{36}{54}\selectfont\par\noindent\thanklesstitle%
%\vspace{0.5in}%
%\LARGE\par\noindent\theedition%
\vfill%
\fontsize{14}{16}\selectfont\par\noindent\thanklesspublisher%
\end{fullwidth}%
}
\thispagestyle{empty}%
\clearpage%
}
%%
% VDQI table of contents
% See the `titlesec' and `titletoc' documentation for details:
http://ctan.org/pkg/titlesec
\titlecontents{part}%
[0pt]% distance from left margin
{\addvspace{0.25\baselineskip}}% above (global formatting of entry)
{\allcaps{Part~\thecontentslabel}\allcaps}% before w/ label (label = ``I'')
{\allcaps{Part~\thecontentslabel}\allcaps}% before w/o label
{}% filler and page (leaders and page num)
[\vspace*{0.5\baselineskip}]% after
\titlecontents{chapter}%
[4em]% distance from left margin
{}% above (global formatting of entry)
{\contentslabel{2em}\textit}% before w/ label (label = ``1'')
{\hspace{0em}\textit}% before w/o label
{\qquad\thecontentspage}% filler and page (leaders and page num)
[\vspace*{0.5\baselineskip}]% after
% TODO: Add similar for section, subsection, etc. if desired
%%
% VDQI \section headings are bold, not italic
% See the `titlesec' and `titletoc' documentation for details:
http://ctan.org/pkg/titlesec
\titleformat{\section}%
[hang]% shape
{\normalfont\Large\bfseries}% format applied to label+text
{\thesection}% label
{1em}% horizontal separation between label and title body
{}% before the title body
[]% after the title body
%%
% VDQI chapters are numbered
\setcounter{secnumdepth}{2}
% TODO: Use \titleformat to adjust the \part style
%%
% Done!
\endinput
That should get you started, at least. If you run into snags or have
further questions, please feel free to ask. (Also, note that I have
not tested any of the above code -- I just copied and pasted it from
the tufte-common.sty file and modified it a bit.)
> The second question is - is anyone tried to use this layout with b5
> pages? it is suitable? As I think regarding the earlier post here, on
> group I can set this page format by using \geometry tag. But I wolud
> like to know if anyboby tried tufte latex with b5 pages together?
I'm not aware of anyone trying the layout with B5 paper. You should
be able to use the \geometry command to define the paper size and
adjust the margins and other page dimensions to your liking, though.
--Kevin
On Sat, Jul 25, 2009 at 6:06 PM, MAT<magdale...@gmail.com> wrote:
>
> Hello.
>
> I've just spend some time "playing" with code of VDQI proposed above,
> and with \geometry tag.
> The code, saved in separate file as Kevin suggested looks to be
> "working" - main page and others looks different.
>
> But I have some other questions:
>
> A. I have a little problem - how can I force dividing/breaking the
> title into separate lines? Stop to dividing a certain word?
> When using \\ or \newline I have a title "cutted" in such a way in
> runninghead.
> When try to use \linebreak[x] to force linebreak I have an error
> message (undefined command?)
> When using \mbox{} it looks to be ignored within the title.
> How to do that?
You should be able to use \\ to insert a line break in the title. The
line break will be replaced by a space in the running heads.
> B. I have been trying to change page size to B5 (I have to write paper
> in this format).
> I have used such a commands:
> 1. in document tex file: \documentclass
> [b5paper,twoside,symmetric,justified]{tufte-book}
> 2. I add the following code in tufte-common.sty:
> line - about 63:
> %%b5paper
> %
> \newboolean{@tufte@b5paper}
> \DeclareOption{b5paper}{\setboolean{@tufte@b5paper}{true}}
> and, under "Set page layout geometry" section
> % 176mm x 250mm (6.9" by 9.8")
> \ifthenelse{\boolean{@tufte@b5paper}}
> {\geometry
> {paperwidth=6.9in,paperheight=9.8in,left=18.0mm,top=13mm,headsep=2\baselineskip,textwidth=125.0mm,marginparsep=6.2mm,marginparwidth=40.4mm,textheight=38\baselineskip,headheight=
> \baselineskip}}
> {}
>
> I have tried it on sample-book.tex file, and it looks that it just
> "cuts" the page size. Nothing is rescaled or reformatted :(
> I can send a produced (in such a way) sample-book.pdf file.
>
> And now - am I doing something wrong with page sizes?
It looks like the margins you specified are off a little bit. The
attached PDF shows a diagram of your margins.
I would adjust the margins. Here are a couple options I whipped up --
free free to adjust them as you see fit.
% If you have only a few short sidenotes and captions
\geometry{paperwidth=176mm,paperheight=250mm,left=19.6mm,top=19.6mm,textwidth=117.33mm,marginparsep=9.8mm,marginparwidth=19.6mm,textheight=38\baselineskip,includehead}
% If you want more room for sidenotes and captions
\geometry{paperwidth=176mm,paperheight=250mm,left=14.66mm,top=13.88mm,textwidth=102.66mm,marginparsep=7.33mm,marginparwidth=36.66mm,textheight=38\baselineskip,includehead}
> C. Is it possible to place separate bibliography index after each
> chapter - or it is "uncompatibile" with tufte-layout idea ? ;)
Hmm.. good question. I haven't tried. With other document classes,
I've used the chapterbib package (http://ctan.org/pkg/chapterbib).
If you run into problems with the multiple bibliographies, please let
me know and I'll look into it.
--Kevin
I've added the b5paper option to the code in SVN. If you grab the
latest code (http://code.google.com/p/tufte-latex/source/checkout),
then you can drop in the tufte-book-local.tex file you made, it should
compile okay. (If it doesn't, let me know -- it worked okay for me.)
Also, if we need to adjust the margins for the B5 paper, I'm open to
suggestions.
With the sample book, some one of the tables is wider than the main
text block, so it pushes the caption over bit. To avoid this in your
work, you can use the table* environment instead. This allows the
table to take up the full width of the page and moves the caption
above or below the table.
Oh, I also fixed the problem with breaking long titles across multiple
lines. Use \\ to insert line breaks. (This originally worked fine
for the handout, but I have some code in the book that overrode the
special line-break handling, so I've corrected that.)
If you encounter further problems or have any more questions, please
feel free to ask.
Thanks!
--Kevin
On Tue, Aug 4, 2009 at 9:36 AM, MAT<magdale...@gmail.com> wrote:
>
> Hello.
>
> I have downloaded code from svn, and the newlinetospace works fine
> there. :)
Great!
> I do not check the margns yet, because when testing code from svn I
> automatically got a BI look...and I started to look how to reach VDQI
> look.
>
> Tried to use tufte-book-local.tex file, fonts has been changing to
> serif fonts, but now I have a one-level Table of contents :(
> If there is no tufte-book-local file I have a BI look - but it is not
> what I want.
>
> So, for now, I have either VDQI look style, with three-level table of
> contents - but with cutted runninghead OR (with code from svn)
> properly formatted runninghead, but one-lebel table of contents.
>
> How can I add more levels (up to three let's say), so I have - as a
> result VDQI look style (serif fonts), with properly formatted
> runninghead and with three-level table of contents?
>
> I tried to move some code from svn def file (1080-1098 and 1121-1126
> lines) concerning newlinetospace to "old" sty file, but there must be
> somethung else than two pieces of code, because it (runninghead)is not
> formatted properly after such "exchange" :(
To show more levels in the table of contents, use the following command:
\setcounter{tocdepth}{2}
You can adjust the value (2) to a different number to show more or
fewer levels in the table of contents.
--Kevin
The multiline title is (I believe) fixed in the svn code now, so we
shouldn't need to do anything special there.
Now for the formatting of the table of contents:
I don't recall if I mentioned it previously, but you might try using
the 'notoc' document class option to see if the default LaTeX format
of the table of contents is to your liking. Use the attached
tufte-book-local.tex file and try it like this:
\documentclass[b5paper,twoside,justified,notoc]{tufte-book}
If you like that style of contents, then you don't have to do any more work.
If you still want to play with the format of the table of contents,
you'll need to use the \titlecontents command in the
tufte-book-local.tex file.
To put the leaders (the string of . . . .) in your contents, I've
added the command \tocdotfill to the attached tufte-book-local.tex
file. Use it in the second-to-last argument of the \titleformat
command (as I did in the chapter example).
I'm not sure if I've addressed all of your questions. If I've missed
any, please ask again.
Thanks!
--Kevin
On Sun, Aug 9, 2009 at 1:20 PM, MAT<magdale...@gmail.com> wrote:
>> The multiline title is (I believe) fixed in the svn code now, so we
>> shouldn't need to do anything special there.
>
> Yes, this is OK.
Great!
> I have tried both option - notoc "switch", and customization of tufte-
> book-local.tex file.
> Both solutions are acceptable for me - looks qiute well.
> I played a little with customization of tufte-book-local.tex and the
> only disadvantage I noticed is, that when the chapter's name is a
> little longer than one line (a few characters - but I does not know in
> details what are conditions for that behaviour) it is formatted like
> that:
>
> 2 Exemplary chapter which has a long title
> 15
>
> that means that only page number is in the next line, aligned to left.
>
> Surprisingly - if chapter's name are longer - there are "dots filling"
> between chapter's name and page number, and page number is aligned to
> right. Lookk somehow like:
>
> 2 Exemplary chapter which is longer than
> previous
> title..........................................................15
>
> I think that will be the same with rest of toc parts.
>
>
> It forced me to consider chapter's name :), and eventually - to change
> font sizes.
> It is worth to consider that "shorter is better" - so I have an
> advantage, but you may want to know about such code behaviour.
Thanks for reporting this. I'll look into it some more.
>> To put the leaders (the string of . . . .) in your contents, I've
>> added the command \tocdotfill to the attached tufte-book-local.tex
>> file. Use it in the second-to-last argument of the \titleformat
>> command (as I did in the chapter example).
>
> Yes, that was what I need :)
> I copied it for myself for section and subsection formatting, and
> tuned-out TOC look.
>
> Thank you very much.
>
> If there will be something else during my work with tufte-book layout
> - I will ask again.
> For now it looks that all work as I want.
I'm glad to hear it.
--Kevin
I'm not seeing this behaviour on my end. Make sure you're using the
svn version. In a previous released version I had an errant \@xxivpt
command in there when I defined \Huge (which is used in designing the
\part page). I'm guessing you have an old copy of tufte-common.sty
lying about. The version in svn has replaced this file with
tufte-common.def.
--Kevin
I'm still looking into the root cause and best solution for this
issue. As a partial workaround, you can replace the \allcaps command
in the \titlecontents{part} section with \uppercase and your document
should compile. The letterspacing won't be quite right, but it will
be set in uppercase.
I will continue to poke around in the code to figure out how to better
workaround the problem. (It looks like hyperref is irked for some
reason; it's so persnickety.) I will post again when I've found a
better solution.
--Kevin
\href works okay for me. Can you give me an example that demonstrates
the problem?
> Another question:
> Did you tried use a eps or ps graphics with your style? I used to do
> it in my earlier TeX documents, but with tufte-latex I have to have
> either jpg or png or pdf.
> I can no use ps and eps with tufte-latex - they are not included in
> the document...
> I thought that the package graphicx is "responsible" for that - it is
> in tufte-latex, but here it looks it does not work.
> Because I decided that the fastest way to workaround this, is to
> convert my graphic files to acceptable formats, I do not spend much
> time on attempts in solving that - force reading ps/eps, but I wonder
> if you can insert ps/eps graphics files?
The types of graphics you can use depends on which engine you use to
compile your document. If you use pdflatex, then you can only use
pdf, png, and jpg graphics. (There may be a couple other types that I
missed.) If you use the latex, then you can only use ps and eps
graphics.
If all of your graphics are ps/eps files and you don't require any of
pdfLaTeX's special abilities, then you can just compile your document
with latex.
If you do want to use pdflatex, then you might look at the epstopdf
package (http://ctan.org/pkg/epstopdf-pkg) which will automatically
detect your .eps files and convert them on-the-fly to pdf files so
they can be used.
--Kevin
> Hello again.
>
> On 23 Sie, 01:38, Kevin Godby <god...@gmail.com> wrote:
>
>> \href works okay for me. Can you give me an example that
>> demonstrates
>> the problem?
> Checked out - earlier I did something wrong - now it looks to be OK,
> except that, that the links are invisible in text ;)
Do the links work? If so, this may be just an issue of color choice.
The standard link colors are really bright---and distracting---so
the tufte-latex uses DarkBlue and DarkGreen. But the DarkBlue can
be hard to see. You might try changing linkcolor to DarkRed.
> Thank you for explanation with graphics files. In a meanwhile I try to
> test software converting graphics in-the-fly.
>
> In the mean time I noticed another inconviniences:
> 1. I used an option "justified" in document class option. All is ok
> except List of figures, they looks awful :( because in the list
> captions are justified too...
> Tried to modify listoffigures adding \begin{flushleft}...\end
> {flushleft} in format settings - does not work. Tried to ''close" a
> \caption in figures in
> \begin{flushleft}
> \caption{}
> \end{flushleft}
> but without success.
The latest version in the svn repo fixes this bug.
--
Dan T. Abell :: dabell at txcorp dot com :: 303.444.2452
Tech-X Corp., 5621 Arapahoe Ave, Ste A, Boulder CO 80303
http://www.txcorp.com :: 303.748.6894/c 303.448.7756/fx
On 25 Aug 2009, at 12:52, MAT wrote:
> Hello again
>
>>> Checked out - earlier I did something wrong - now it looks to be OK,
>>> except that, that the links are invisible in text ;)
>>
>> Do the links work? If so, this may be just an issue of color choice.
>> The standard link colors are really bright---and distracting---so
>> the tufte-latex uses DarkBlue and DarkGreen. But the DarkBlue can
>> be hard to see. You might try changing linkcolor to DarkRed.
> I have no color at all, so links are not visible - which keyword and
> in which file should I look for?
Do you have an \url{...} in your document?
Does clicking on it do anything?
If yes, then search for 'linkcolor' in tufte-common.def,
and modify as desired.
If no, then how are you compiling your document? If you're
not using pdflatex, then I think the hyperref package needs
to be loaded with the option 'dvipdfm'. If this works, let
us know so we can modify the loading of hyperref accordingly.
>> The latest version in the svn repo fixes this bug.
> Checked out - works OK.
great!
Cheers,
-Dan
On Tue, Aug 25, 2009 at 1:52 PM, MAT<magdale...@gmail.com> wrote:
>
> Hello again
>
>> > Checked out - earlier I did something wrong - now it looks to be OK,
>> > except that, that the links are invisible in text ;)
>>
>> Do the links work? If so, this may be just an issue of color choice.
>> The standard link colors are really bright---and distracting---so
>> the tufte-latex uses DarkBlue and DarkGreen. But the DarkBlue can
>> be hard to see. You might try changing linkcolor to DarkRed.
> I have no color at all, so links are not visible - which keyword and
> in which file should I look for?
The color links aren't enabled by default (as they typically appear
grey when printed in black and white). To enabled the color links,
add the following line to the preamble of your document:
\hypersetup{colorlinks}
--Kevin
Hello, Magdalena.On Sat, Jul 4, 2009 at 7:52 AM, MAT<magdale...@gmail.com> wrote:
>
> Hello, I'm not a LaTeX expert, all I do with it since now, were short
> articles.
> Now, I will write a longer piece of text. I found out tufte-latex
> class/style - it looks nice, and I would like to use it.
> But when I compile tex source, I got a text looks like in BE. I could
> not use a \part tag here, because I receive an error.The \part command should work, but there was a bug in the latest
released version of the code. I've fixed this bug since, but haven't
yet released a new version to CTAN. You can check out the latest code
at http://code.google.com/p/tufte-latex/source/checkout, if you'd
like.> I would like a style like in VDQI, mostly because of more detailed
> contents (table of content), and because I prefer serif fonts.
> What should I add, install or uncomment or so on to have such a view
> (VDQI)?
> I tried to read this group's articles, search the net - but I can't
> find such an example or information how to. I can't find how to switch
> to VDQI layout...Right now the styles follow BE. I would like to add code at some
point to handle the VDQI (and other book) styles, but haven't had time
yet.I think most of the design elements and layouts are the same for VDQI
and BE. Glancing through my copy of VDQI, the differences that jump
out at me are:* the title page
* the table of contents
* the section headings are bold
* the chapters are numbered
* there are two partsI don't have time to address all of the details in each of these
issues, but some of the following code may help you get started on the
modifications you want. You can add these modifications to a file
named "tufte-book-local.tex" and drop the file into the same place as
your document's .tex file and it should get loaded automatically.
%%
% VDQI title page
\renewcommand{\maketitlepage}[0]{%
\cleardoublepage%
{%
\begin{fullwidth}%
\fontsize{24}{30}\selectfont\par\noindent\thanklessauthor%
\vspace{1.75in}%
\fontsize{36}{54}\selectfont\par\noindent\thanklesstitle%
%\vspace{0.5in}%
%\LARGE\par\noindent\theedition%
\vfill%
\fontsize{14}{16}\selectfont\par\noindent\thanklesspublisher%
\end{fullwidth}%
}
\thispagestyle{empty}%
\clearpage%
}
%%
% VDQI table of contents
% See the `titlesec' and `titletoc' documentation for details:
http://ctan.org/pkg/titlesec
\titlecontents{part}%
[0pt]% distance from left margin
{\addvspace{0.25\baselineskip}}% above (global formatting of entry)
{\allcaps{Part~\thecontentslabel}\allcaps}% before w/ label (label = ``I'')
{\allcaps{Part~\thecontentslabel}\allcaps}% before w/o label
{}% filler and page (leaders and page num)
[\vspace*{0.5\baselineskip}]% after
\titlecontents{chapter}%
[4em]% distance from left margin
{}% above (global formatting of entry)
{\contentslabel{2em}\textit}% before w/ label (label = ``1'')
{\hspace{0em}\textit}% before w/o label
{\qquad\thecontentspage}% filler and page (leaders and page num)
[\vspace*{0.5\baselineskip}]% after
% TODO: Add similar for section, subsection, etc. if desired
%%
% VDQI \section headings are bold, not italic
% See the `titlesec' and `titletoc' documentation for details:
http://ctan.org/pkg/titlesec\titleformat{\section}%
[hang]% shape
{\normalfont\Large\bfseries}% format applied to label+text
{\thesection}% label
{1em}% horizontal separation between label and title body
{}% before the title body
[]% after the title body%%
% VDQI chapters are numbered\setcounter{secnumdepth}{2}
% TODO: Use \titleformat to adjust the \part style
%%
% Done!\endinput
That should get you started, at least. If you run into snags or have
further questions, please feel free to ask. (Also, note that I have
not tested any of the above code -- I just copied and pasted it from
the tufte-common.sty file and modified it a bit.)> The second question is - is anyone tried to use this layout with b5
> pages? it is suitable? As I think regarding the earlier post here, on
> group I can set this page format by using \geometry tag. But I wolud
> like to know if anyboby tried tufte latex with b5 pages together?I'm not aware of anyone trying the layout with B5 paper. You should
be able to use the \geometry command to define the paper size and
adjust the margins and other page dimensions to your liking, though.
--Kevin