tufte layout files:

- correct appearance of section environments in LyX: also non-starred sections don't have a number in tufte
- use the new nohyper document class option, this way the user has full access to the PDF appearance via our PDF properties settings (thanks to the tufte developer for implementing this)

This can first go to branch when the new tufte version will be released - this release will definitively happen before LyX 1.7 therefore I think it's safe to commit to trunk.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31942 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-11-11 03:09:54 +00:00
parent d5099c8605
commit 4d0678b4a0
4 changed files with 161 additions and 26 deletions

View File

@ -18,7 +18,16 @@
\graphics default \graphics default
\paperfontsize default \paperfontsize default
\spacing single \spacing single
\use_hyperref false \use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen true
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\papersize default \papersize default
\use_geometry true \use_geometry true
\use_amsmath 1 \use_amsmath 1

View File

@ -3,7 +3,7 @@
\begin_document \begin_document
\begin_header \begin_header
\textclass tufte-handout \textclass tufte-handout
\use_default_options false \use_default_options true
\language english \language english
\inputencoding auto \inputencoding auto
\font_roman default \font_roman default
@ -18,7 +18,16 @@
\graphics default \graphics default
\paperfontsize default \paperfontsize default
\spacing single \spacing single
\use_hyperref false \use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered true
\pdf_bookmarksopen true
\pdf_bookmarksopenlevel 1
\pdf_breaklinks true
\pdf_pdfborder true
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\papersize default \papersize default
\use_geometry true \use_geometry true
\use_amsmath 1 \use_amsmath 1
@ -146,11 +155,11 @@ tufte-handout
document class and a style guide to its use. document class and a style guide to its use.
\end_layout \end_layout
\begin_layout Part* \begin_layout Part
First part First part
\end_layout \end_layout
\begin_layout Section* \begin_layout Section
Page Layout Page Layout
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -158,10 +167,10 @@ name "sec:page-layout"
\end_inset \end_inset
\end_layout \end_layout
\begin_layout Subsection* \begin_layout Subsection
Headings and paragraph design Headings and paragraph design
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -169,7 +178,7 @@ name "sec:headings"
\end_inset \end_inset
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
@ -290,7 +299,7 @@ NewThought
). ).
\end_layout \end_layout
\begin_layout Subsection* \begin_layout Subsection
Sidenotes Sidenotes
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -298,7 +307,7 @@ name "sec:sidenotes"
\end_inset \end_inset
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
@ -378,7 +387,7 @@ This is a normal margin note.
\end_layout \end_layout
\begin_layout Subsection* \begin_layout Subsection
References References
\end_layout \end_layout
@ -427,7 +436,7 @@ nobibliography
the text. the text.
\end_layout \end_layout
\begin_layout Section* \begin_layout Section
Figures and Tables Figures and Tables
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -435,7 +444,7 @@ name "sec:figures-and-tables"
\end_inset \end_inset
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
@ -902,7 +911,7 @@ name "tab:normaltab"
\end_layout \end_layout
\begin_layout Section* \begin_layout Section
Full-width text blocks Full-width text blocks
\end_layout \end_layout
@ -937,11 +946,11 @@ Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Duis eget orci sit amet orci dignissim rutrum. Duis eget orci sit amet orci dignissim rutrum.
\end_layout \end_layout
\begin_layout Part* \begin_layout Part
Second part Second part
\end_layout \end_layout
\begin_layout Section* \begin_layout Section
Typography Typography
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -952,7 +961,7 @@ name "sec:typography"
\end_layout \end_layout
\begin_layout Subsection* \begin_layout Subsection
Typefaces Typefaces
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -980,7 +989,7 @@ Computer Modern
typefaces. typefaces.
\end_layout \end_layout
\begin_layout Subsection* \begin_layout Subsection
Letterspacing Letterspacing
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -1082,7 +1091,7 @@ Small Caps
The Initial Letters Of The Words In This Sentence Are Capitalized. The Initial Letters Of The Words In This Sentence Are Capitalized.
\end_layout \end_layout
\begin_layout Section* \begin_layout Section
Customization Customization
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -1093,7 +1102,7 @@ name "sec:customization"
\end_layout \end_layout
\begin_layout Subsection* \begin_layout Subsection
Document class options Document class options
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -1183,7 +1192,7 @@ justified
in the slightly narrower column. in the slightly narrower column.
\end_layout \end_layout
\begin_layout Subsection* \begin_layout Subsection
Defining new sections Defining new sections
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -1324,7 +1333,7 @@ titlesec
package. package.
\end_layout \end_layout
\begin_layout Section* \begin_layout Section
Support Support
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -1335,7 +1344,7 @@ name "sec:support"
\end_layout \end_layout
\begin_layout Subsection* \begin_layout Subsection
Package Dependencies Package Dependencies
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
@ -1411,7 +1420,7 @@ palatino*
beramono* beramono*
\end_layout \end_layout
\begin_layout Subsection* \begin_layout Subsection
Tufte-LaTeX Tufte-LaTeX
\begin_inset space \space{} \begin_inset space \space{}
\end_inset \end_inset

View File

@ -7,9 +7,12 @@
Format 11 Format 11
Provides geometry 1 Provides geometry 1
Provides hyperref 1
Provides natbib-internal 1 Provides natbib-internal 1
ClassOptions
Other nohyper
end
Style Standard Style Standard
Margin Static Margin Static
LatexType Paragraph LatexType Paragraph
@ -25,6 +28,9 @@ End
Input stdlayouts.inc Input stdlayouts.inc
Input book.layout Input book.layout
NoStyle Chapter
NoStyle Section
NoStyle Subsection
NoStyle Subsubsection NoStyle Subsubsection
NoStyle Subsubsection* NoStyle Subsubsection*
NoStyle Paragraph NoStyle Paragraph
@ -32,6 +38,64 @@ NoStyle Paragraph*
NoStyle Subparagraph NoStyle Subparagraph
NoStyle Subparagraph* NoStyle Subparagraph*
Style Chapter
Margin Static
Category Section
LabelType None
LabelCounter chapter
TocLevel 0
LatexType Command
LatexName chapter
NeedProtect 1
NextNoIndent 1
ParSkip 0.4
TopSep 4
BottomSep 0.8
ParSep 0.8
Align Block
OptionalArgs 1
Font
Series Bold
Size Huge
EndFont
End
Style Section
Category Section
Margin Dynamic
LabelType None
LabelCounter section
TocLevel 1
LatexType Command
LatexName section
NeedProtect 1
NextNoIndent 1
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Block
OptionalArgs 1
Font
Series Bold
Size Larger
EndFont
End
Style Subsection
CopyStyle Section
TocLevel 2
LatexName subsection
TopSep 0.9
BottomSep 0.5
ParSep 0.5
Font
Series Bold
Size Large
EndFont
End
InsetLayout Sidenote InsetLayout Sidenote
LyxType custom LyxType custom
LatexType command LatexType command

View File

@ -8,5 +8,58 @@ Format 11
# import other layouts # import other layouts
Input stdlayouts.inc Input stdlayouts.inc
Input tufte-book.layout
Input article.layout Input article.layout
Input tufte-book.layout
NoStyle Part
NoStyle Chapter
NoStyle Chapter*
Style Part
Category Section
Margin Dynamic
LabelType None
TocLevel 0
LabelCounter part
LatexType Command
LatexName part
NeedProtect 1
NextNoIndent 1
Labelsep xxx
ParSkip 0.4
TopSep 4
BottomSep 4
ParSep 0.8
Align Center
Alignpossible Center
Font
Series Bold
Size Huge
EndFont
End
Style Abstract
Margin Static
LatexType Environment
LatexName abstract
Category FrontMatter
NextNoIndent 1
LeftMargin MMM
RightMargin MMM
ParIndent MM
ItemSep 0
TopSep 0.7
BottomSep 0.7
ParSep 0
Align Block
LabelType Centered_Top_Environment
LabelString "Abstract"
LabelBottomSep 0.5
Font
Size Small
EndFont
LabelFont
Series Bold
Size Large
EndFont
End