将图像放置在边距之外

将图像放置在边距之外

我正在编写技术手册并使用以下模板:

% %
% LAYOUT_E.TEX - Short description of REFMAN.CLS
%                                       99-03-20
%
%  Updated for REFMAN.CLS (LaTeX2e)
%
\documentclass[twoside,a4paper]{refart}
\usepackage{makeidx}
\usepackage{ifthen}
% ifthen wird vom Bild von N.Beebe gebraucht!

\def\bs{\char'134 } % backslash in \tt font.
\newcommand{\ie}{i.\,e.,}
\newcommand{\eg}{e.\,g..}
\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}

\title{Changing the layout with \LaTeX}
\author{EDV-Zentrum der TU Wien, Abt.~Digitalrechenanlage \\
Hubert Partl \\
1988-10-04   \\
English translation by\\
Axel Kielhorn\thanks{[email protected]}\\
1999-03-20   \\
H27.0 --- Version 1}

\date{}
\emergencystretch1em  %

\pagestyle{myfootings}
\markboth{Changing the layout with \textrm{\LaTeX}}%
         {Changing the layout with \textrm{\LaTeX}}

\makeindex 

\setcounter{tocdepth}{2}

\begin{document}

\maketitle



\printindex

\end{document}

我想添加一些相当大的图片,并且我正在寻找如何对图片使用不同的边距以显示更大的图像。

谢谢你的帮助。

BR,费德里科

答案1

像这样:

在此处输入图片描述

在包的帮助下changepage

\documentclass[twoside,a4paper]{refart}
\usepackage{makeidx}
\usepackage{ifthen}
% ifthen wird vom Bild von N.Beebe gebraucht!
\usepackage[demo]{graphicx}         %%%% added, in real document delete option "demo"
\usepackage[strict]{changepage}     %%%% added

\def\bs{\char'134 } % backslash in \tt font.
\newcommand{\ie}{i.\,e.,}
\newcommand{\eg}{e.\,g..}
\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}

\title{Changing the layout with \LaTeX}
\author{EDV-Zentrum der TU Wien, Abt.~Digitalrechenanlage \\
Hubert Partl \\
1988-10-04   \\
English translation by\\
Axel Kielhorn\thanks{[email protected]}\\
1999-03-20   \\
H27.0 --- Version 1}

\date{}
\emergencystretch1em  %

\pagestyle{myfootings}
\markboth{Changing the layout with \textrm{\LaTeX}}%
         {Changing the layout with \textrm{\LaTeX}}
\makeindex
\setcounter{tocdepth}{2}

%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{lipsum}
%---------------------------------------------------------------%
\begin{document}
\maketitle

\lipsum[1]
\begin{figure}[htp]
\begin{adjustwidth}{-\marginparwidth}{0pt}
\includegraphics[width=\linewidth]{my-figure}
\caption{}
\end{adjustwidth}
\end{figure}

\printindex
\end{document}

相关内容