儿童书籍模板

儿童书籍模板

我打算用 LaTeX 为我快 4 岁的孩子(编写和)排版一本或多本书。这些书将讲述一个童话故事(或赫拉克勒斯的劳作),每页只有一句话和一幅大插图。假设有文字和(可能是 jpeg)插图,您是否知道一个包/模板/一组宏,可以以简单愉快的方式将所有内容组合在一起?“愉快”在这里意味着,例如,文本可能位于每页的不同位置,或者一行或几行,等等。

答案1

儿童读物和阅读它们的孩子一样独特。他们非常个性化,很难用一种方式来概括他们。班级.每本书都值得拥有它自己的。

以下是一个草稿(非常粗糙,但只是为了说明开发一个特殊模板并不难),

在此处输入图片描述 在此处输入图片描述 在此处输入图片描述在此处输入图片描述

下面是可以参考的代码:

\documentclass[11pt]{book}
\usepackage[svgnames]{xcolor}
\usepackage{ifpdf}
\usepackage{graphicx}
\frenchspacing
\newfont{\HUGE}{cmr17 at 96pt}
\setlength{\textwidth}{3.0in}
\setlength{\textheight}{5.125in}
\setlength{\oddsidemargin}{0.0in}
\setlength{\evensidemargin}{-0.375in}
\setlength{\topmargin}{-0.375in}
\setlength{\headsep}{0.25in}
\setlength{\headheight}{0.125in}
\setlength{\footskip}{0.25in}
\setlength{\parindent}{0.5\parindent}
\ifpdf
  \pdfpageheight 7.5in 
  \pdfpagewidth 4.625in
\else
%\setlength{\paperheight}{7.5in}
%\setlength{\paperwidth}{4.625in}
\addtolength{\oddsidemargin}{1.9375in}
\addtolength{\evensidemargin}{1.9375in}
\addtolength{\topmargin}{1.75in}
\fi
\newcommand{\hstroke}{\rule[0.5ex]{5.0em}{0.2ex}}

\begin{document}

\newpage
\thispagestyle{empty}
\begin{center}
\setlength{\unitlength}{1.0em}%
\begin{picture}(45,16)(0,0)
\put(-0.625,0){\framebox(6.2,7.25){\HUGE \textcolor{purple}{A}}}
\put(5.875,5.625){\parbox[t]{15em}{\Huge \noindent LITTLE GIFT\linebreak
\raggedright FOR LITTLE\linebreak
FEET\linebreak
}}
\end{picture}
\hspace*{-0.6em}\rule{1.08\textwidth}{0.3ex}\\
{\small \sc by}\\
{\small YIANNIS LAZARIDES}\\
{\footnotesize Author of ``Myths of TeX''}\\
\vspace*{18.5 ex}
\rule{\textwidth}{0.3ex}\\
{\small
DOHA\phantom{ZZZZZ,}\hfill\raisebox{0.5ex}{$\bullet$}\hfill THE CAMEL\linebreak
QATAR\hfill\raisebox{0.5ex}{$\bullet$}\hfill PRESS
}
\end{center}
\newpage
\thispagestyle{empty}
\vspace*{18ex}
\begin{center}
{\em Copyright, $\mit 2011$}\\
{\sc By the Little Girl \& Company}\\
\hstroke\\
{\em All rights reserved}\\
\vspace*{18ex}
{\sc A little story book}\\
{\sc for a little girl}\\
\vspace*{12ex}
Made in the wild.
\end{center}
\newpage
\frontmatter
\thispagestyle{empty}
\vspace*{20ex}
\begin{center}
                           {\scriptsize FOR}\\
                {\large \bf Li, Mary and John}\\
\smallskip
                   {\footnotesize AND THE REST\\
                     OF THE WORLD'S\\
                    CHILDREN}
\end{center}
\newpage
\thispagestyle{empty}

\newpage

\mainmatter


\chapter*{Stories of Greece}
\Large

Once upon a time there were two girls. One of them lived in Greece and the other on lived on the land of the Moon \ldots

\pagebreak

\includegraphics[width=3.5in]{children-0}

\ldots and there was a time when everyone was dressed in white\ldots


\hskip-1in\includegraphics[width=1.43\textwidth]{children-01}

\ldots and the gods had wings and there were no demons \ldots
\par

\pagebreak

\hskip-.5in\includegraphics[width=1.43\textwidth]{children-03}

\bigskip

\ldots and on the other side of the world in the Land of the Moon Wi Li was sleeping \ldots
\end{document}

您可以在以下位置查看 PDF鳄鱼

...我认为书应该很小,适合放在小膝盖上,以便小手指可以轻松翻页......

答案2

投影仪课程已经帮到你了吗?你可以将其创建为演示文稿并打印出来。每页(箔)都有一张图片,文本已经很大了。

一个简单的例子(需要一个picture)。

\documentclass[ngerman]{beamer}
%<<theme>>
\usepackage{babel}
\usepackage{ifthen}
\usepackage[ansinew]{inputenc}

\title{Fairytale}
\hypersetup{pdftitle={Fairytale}}

\makeatletter
\newcommand{\framePicFull}[1]{
    \def\beamertoolgraphic{\includegraphicsJustified{#1}}
    \@framePicHorizontal
}%\framePicFull
\newcommand{\@framePicHorizontal}[2][beamertooldummy]{
\centering
\ifthenelse{\equal{beamertooldummy}{#1}}{
    \beamertoolgraphic
}{
    \hyperlink{#1}{\beamertoolgraphic}
}\\\noindent #2
}%\framePicHorizontal
\newlength{\breit}
\newlength{\hoch}
\newcommand\includegraphicsJustified[1]{%
    \settowidth{\breit}{\includegraphics{#1}}%
    \settoheight{\hoch}{\includegraphics{#1}}%
    \ifthenelse{\lengthtest{\hoch > \textheight}}{%
        \ifthenelse{\lengthtest{\breit > \linewidth}}{%
            \includegraphics[width=0.95\linewidth]{#1}%
        }{
            \includegraphics[height=0.9\textheight]{#1}%
        }%
    }{%
        \ifthenelse{\lengthtest{\breit > \linewidth}}{%
            \includegraphics[width=0.95\linewidth]{#1}%
        }{%
            \includegraphics[]{#1}%
        }%
    }%
}

\makeatother
% ----------------------------------------------------------------
\begin{document}

\frame{
\frametitle{My Fairytale}
\framePicFull{Picture}{Once upon \ldots}
}


\end{document}

该示例将图片拉伸至几乎整页。根据我们的图片,您应该使用其他设置。最好您的图片已经具有正确的尺寸,您只需使用\includegraphicx

您可以定义(或搜索)一个带有装饰品或类似物品的漂亮模板。

相关内容