d**********o 发帖数: 1321 | 1 第一个项目report
这时偶刚到CSAC工作不久,与小A同学还不熟,我用的还是latex。随着贴的作业越来越
多,应该是用有共同爱好的小伙伴更亲密些。这次贴latex,下次才再org-mode。
\documentclass[b5paper,11pt, abstraction, titlepage]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{listings}
\usepackage{geometry}
\geometry{b5paper}
\usepackage{graphicx,floatrow}
\usepackage{graphicx,subfigure}
\newsavebox{\abstractbox}
\renewenvironment{abstract}
{\begin{lrbox}{0}\begin{minipage}{\t... 阅读全帖 |
|
d**********o 发帖数: 1321 | 2 第一个项目report
这时偶刚到CSAC工作不久,与小A同学还不熟,我用的还是latex。随着贴的作业越来越
多,应该是用有共同爱好的小伙伴更亲密些。这次贴latex,下次才再org-mode。
\documentclass[b5paper,11pt, abstraction, titlepage]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{listings}
\usepackage{geometry}
\geometry{b5paper}
\usepackage{graphicx,floatrow}
\usepackage{graphicx,subfigure}
\newsavebox{\abstractbox}
\renewenvironment{abstract}
{\begin{lrbox}{0}\begin{minipage}{\t... 阅读全帖 |
|
O*O 发帖数: 2284 | 3 我按下面的做的
可是图不是居中
而是靠左
另外如何不用\\来实现多图竖排列(一排一个图)
\begin{figure}
\begin{minipage}[t]{.5\textwidth}
\centering
\includegraphics[width=\textwidth]{fig1.eps}
\centerline{(a)}
\end{minipage}\\
\begin{minipage}[t]{.5\textwidth}
\centering
\includegraphics[width=\textwidth]{fig2.eps}
\centerline{(b)}
\end{minipage}\\
\begin{minipage}[t]{.5\textwidth}
\centering
\includegraphics[width=\textwidth]{fig3.eps}
\centerline{(c)}
\end{minipage}\\
\caption{}
\label{fig:myfig}
\end{figure} |
|
T*******n 发帖数: 493 | 4 You are including a figure of width \textwidth inside a
minipage of width 0.5\textwidth!
Try something simpler:
\documentclass{article}
\usepackage{subfig}
\begin{document}
\begin{figure}
\centering
\subfloat[]{\includegraphics[width=\textwidth]{fig1.eps}}\par
\subfloat[]{\includegraphics[width=\textwidth]{fig2.eps}}\par
\subfloat[]{\includegraphics[width=\textwidth]{fig3.eps}}
\caption{Caption}
\end{figure}
\begin{figure}
\centering
\includegraphics[width=\textwidth]{fig1.eps} \\ (a)\par\bigski |
|
mw 发帖数: 525 | 5 发现subfigure的caption很占位子,而且该交代的东西在整个figure的caption里面都
交代了,没有必要在给每个subfigure讲一遍。
请问有什么办法可以去掉subfigure的caption?比如下面的code
\begin{figure}[h]
\centering \subfigure[3451]{
\includegraphics[width = 0.3\textwidth,height = 0.225\textwidth]{d:/latex/
eps/3451Bayesian_nodes_prob.eps}}
\subfigure[3501]{
\includegraphics[width = 0.3\textwidth,height = 0.225\textwidth]{d:/latex/
eps/3501Bayesian_nodes_prob.eps}}
\subfigure[3551]{
\includegraphics[width = 0.3\textwidth,height = 0.225\textwidth]{d:/latex/
eps/35 |
|
g*********r 发帖数: 124 | 6 \begin{figure}[!htb]
\centering
\begin{minipage}[c]{0.5\textwidth}
\subfloat[\footnotesize]{\label{fig:1a}
\includegraphics[width=1.0\textwidth]{1a.eps}}% 左边大图
\end{minipage}\hfill
\begin{minipage}[c]{0.5\textwidth}
\subfloat[\footnotesize]{\label{fig:1b}\includegraphics[width=1.0\textwidth]
{1b.eps}}\ % 右上小图
\subfloat[\footnotesize]{\label{fig:1c}\includegraphics[width=1.0\textwidth]
{1c.eps}} % 右下小图
\end{minipage}
\caption{...}
\label{fig:1}
\end{figure}
如果想达到两边图形高度相等的效果,两个小页的宽度需要作适当调整。
c) |
|
b*******g 发帖数: 513 | 7 就这三张图:
\newpage
\begin{figure}[h]
\centering
\includegraphics[angle=0,width=0.9\textwidth]{25.eps}
\caption{The posterior TAD panels for parameter gamma1 ($\gamma_{1}$) of
the seeds data. } \label{001}
\end{figure}
\pagebreak[4]
\newpage
\begin{figure}[h]
\centering
\includegraphics[angle=0,width=0.9\textwidth]{26.eps}
\caption{The posterior TAD panels for parameter gamma2 ($\gamma_{2}$) of
the seeds data. } \label{001}
\end{figure}
\pagebreak[4]
\newpage
\begin{figure}[h]
\centering
\includegra... 阅读全帖 |
|
T*******n 发帖数: 493 | 8 I haven't use ieeetrans.cls before, but I took a quick look at it and I don't
see anything unusual that would prevent you from overriding the default margin
setting by changing \oddsidemargin, \textwidth, etc. directly.
Did you try changing these length parameters (before \begin{document}) to see
whether they do anything at all?
If you don't know how \oddsidemargin, \textwidth, etc. are calculated, post
back what you actually require for the four margins, and I will reply with the
values you sho |
|
T*******n 发帖数: 493 | 9 Each cell in the table has its own vertical alignment reference point,
and all the cells in the same row have their vertical alignment reference
points aligned with each other. The vertical alignment of these cells
work the same way as \parbox's.
Maybe this helps illustrate the alignment mechanism?
\documentclass[landscape]{article}
\setlength{\oddsidemargin}{0in}
\setlength{\textwidth}{9in}
\begin{document}
\makebox[0pt][l]{\rule{\textwidth}{0.2pt}}
\ignorespaces
vertical alignment reference l |
|
x*z 发帖数: 1010 | 10 \usepackage{multimedia}
...
\movie[width=1.0\textwidth]{\includegraphics[width=1.0\textwidth]{figure.jpg}}
{movie.avi} |
|
a***f 发帖数: 150 | 11 我的是这样。其实是两个图成一个大图。
\begin{figure}[h!]
\begin{center}
\subfigure[]{
\includegraphics[width=0.95\textwidth]{a.eps}
}
\subfigure[]
{
\includegraphics[width=0.95\textwidth]{b.eps}
}
\end{center}
\end{figure} |
|
b****t 发帖数: 29 | 12 通过minipage,找到有人用columns解决这个问题。谢谢。下面是我的code,既可以插入
图片,也能插入list.
\begin{columns}
\begin{column}{0.3\textwidth}
\includegraphics[width = 20mm]{CTMC-non-disruption}
\end{column}
\begin{column}{0.7\textwidth}
\begin{itemize}
\item Possion demand
\item No Leadtime
\item No Supply Disruption
\end{itemize}
\end{column}
\end{columns} |
|
o******e 发帖数: 10 | 13 I have a table with the following tex code
\begin{tabular*}{1\textwidth}{ccc}
1 & 2 & 3 \\
1 & 2 & 3 \\
\end{tabular*}
i.e., I want to format the table so that the width of the table is equal to
1 textwidth.
Now I use windows lyx. How can I format this in lyx?
Thanks |
|
o******e 发帖数: 10 | 14 Thanks.
I have figured out an easier way.
I redefine the tabular environment in the preamble. Most of the times I want
the table to be as wide as 1\textwidth;
\renewenvironment{tabular}
{%
\begin{tabular*}{1\textwidth}
}
{%
\end{tabular*}%
}
Then add the \extracolsep{\fill}} to the tex argument in the first column of
each table. This way, I don't have to manually assign the width of a column
. The rubber space should take care of it. |
|
m********7 发帖数: 37 | 15 我不知道为什么老说jpg, eps 不能同时在文档中。
我用latex 从来都没有问题。
Examples:
\usepackage{graphicx}
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=0.4\textwidth, height=0.25\textheight]{Plot/
runningTime.eps}
\end{center}
\caption{The running time of experiments}
\label{fig:runningTime}
\end{figure}
\begin{figure}[htbp]
\includegraphics[width=0.35\textwidth, height=0.25\textheight, bb=0 0 770
800]{Image/top20.jpg}
\caption{The top 20 univ}
\label{fig:top20}
\end{figure} |
|
m********7 发帖数: 37 | 16 我不知道为什么老说jpg, eps 不能同时在文档中。
我用latex 从来都没有问题。
Examples:
\usepackage{graphicx}
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=0.4\textwidth, height=0.25\textheight]{Plot/
runningTime.eps}
\end{center}
\caption{The running time of experiments}
\label{fig:runningTime}
\end{figure}
\begin{figure}[htbp]
\includegraphics[width=0.35\textwidth, height=0.25\textheight, bb=0 0 770
800]{Image/top20.jpg}
\caption{The top 20 univ}
\label{fig:top20}
\end{figure} |
|
m********7 发帖数: 37 | 17 我不知道为什么老说jpg, eps 不能同时在文档中。
我用latex 从来都没有问题。
Examples:
\usepackage{graphicx}
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=0.4\textwidth, height=0.25\textheight]{Plot/
runningTime.eps}
\end{center}
\caption{The running time of experiments}
\label{fig:runningTime}
\end{figure}
\begin{figure}[htbp]
\includegraphics[width=0.35\textwidth, height=0.25\textheight, bb=0 0 770
800]{Image/top20.jpg}
\caption{The top 20 univ}
\label{fig:top20}
\end{figure} |
|
m**w 发帖数: 29 | 18 This is part of the new requirements.
I have also used the following commands.
\setlength\topmargin{0in} % 1 inch
\setlength\headheight{0in}
\setlength\headsep{0in}
\setlength\textheight{8.7in}
\setlength\textwidth{6.5in}
\abovedisplayskip=2pt
\belowdisplayskip=2pt
\abovedisplayshortskip=2pt
\belowdisplayshortskip=2pt |
|
d**********o 发帖数: 1321 | 19 我与Emacs的不解情缘(9)
差不多去年暑假后回学期也学会了自己写macro,贴个前段时间做题时写过的写lc的模
板吧:M-x lc ENT :
(fset 'lc
[?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?i ?o ?s ?t ?r ?e ?a ?m ?> return ?# ?i ?n
?c ?l ?u ?d ?e ? ?< ?v ?e ?c ?t ?o ?r ?> return ?# ?i ?n ?c ?l ?u ?d ?e ?
?< ?a ?l ?g ?o ?r ?i ?t ?h ?m ?> return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?c ?s
?t ?r ?i ?n ?g ?> return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?c ?m ?a ?t ?h ?>
return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?s ?t ?a ?c ?k ?> return ?# ?i ?n ?c ?l
?u ?d ?e ? ?< ?q ?u ?e ?u ?e ?> retur... 阅读全帖 |
|
d**********o 发帖数: 1321 | 20 我与Emacs的不解情缘(9)
差不多去年暑假后回学期也学会了自己写macro,贴个前段时间做题时写过的写lc的模
板吧:M-x lc ENT :
(fset 'lc
[?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?i ?o ?s ?t ?r ?e ?a ?m ?> return ?# ?i ?n
?c ?l ?u ?d ?e ? ?< ?v ?e ?c ?t ?o ?r ?> return ?# ?i ?n ?c ?l ?u ?d ?e ?
?< ?a ?l ?g ?o ?r ?i ?t ?h ?m ?> return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?c ?s
?t ?r ?i ?n ?g ?> return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?c ?m ?a ?t ?h ?>
return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?s ?t ?a ?c ?k ?> return ?# ?i ?n ?c ?l
?u ?d ?e ? ?< ?q ?u ?e ?u ?e ?> retur... 阅读全帖 |
|
l**g 发帖数: 26 | 21 tex的好处是根本不用管图片效果
你把图片做成eps的,比如fig1.eps
然后每次都用最简单的语句插入图片
\begin{figure}[htp]
\includegraphics[width=textwidth,height=textheight]{fig1}
\caption{... \label{myfig1}}
\end{figure}
就好了,
至于显示出来什么样子,大小位置什么的
根本不用管!
因为杂志的编辑器会忽略你的大部分格式语句,
而用它自己的。
你要是没事纠结width 到底是多少inch,height到底多少inch,
那还是没有领会tex的关键。 |
|
d****t 发帖数: 748 | 22 ☆─────────────────────────────────────☆
doubledomer (Rudy) 于 (Tue Apr 19 22:15:12 2005) 提到:
% LaTeX input file
\documentstyle[12pt]{article}
%\pagestyle{empty}
\textwidth=6in
\textheight=8in
\oddsidemargin=0.5in
\evensidemargin=0.5in
\headheight=0in
\headsep=0in
\footheight=0in
\begin{document}
\baselineskip 12pt
\rightline{\bf\large AME538}
\rightline{\bf\large Name: Rudy}
\rightline{ December 1, 199X}
\bigskip
\bigskip
\begin{center}{\bf\large Review of Fluid Mechanics Film 1 and 2:
Vo |
|
y***a 发帖数: 840 | 23 paper占两列,想让一个比较长的图占两列,可是latex总是试图把那个图放到一个COLU
MN里,所以只显示一半,另一半出去了。怎么整?
98 \begin{figure}[!htbp]
99 \begin{center}
100 {\includegraphics[angle=270,width=\textwidth]
102 {figures/test.pdf}}
103 \caption{XXXX』
104 \label{xx:xxl}
105 \end{center}
106 \end{figure} |
|
s*****l 发帖数: 2041 | 24 每次输入一行到75字符的时候就自动换行,这好像是为fortran设置的,
但是我编辑的文件并不是什么fortran程序,很不爽
我在.vimrc即使设置了:set textwidth=12500
还是有同样的问题,请问大师应该怎么弄vim?
灰常感谢!! |
|
l******t 发帖数: 108 | 25
resize it in latex, need graphicx package, sth like
\includegraphics[scale=0.5]{youreps}
\includegraphics[width=0.8\textwidth]{youreps}
do u want \caption{}? or add something to the eps? maybe you
can try pstricks, psfrag packages.
try subfigure package |
|
f******n 发帖数: 176 | 26 try this:
\centerline{\includegraphics[scale=1.0,angle=0,width=0.9\textwidth]{figure1.
eps}}
then figure2.eps |
|
c****s 发帖数: 2487 | 27 here it is... though i do think there must be something else wrong
well, the whole story is, I had a curve printed out as .ps, then
converted the .ps to .fig with pstoedit, then edited it with xfig,
finally exported the .eps
I also tried another way around: imported the .ps into corel draw,
then exported the eps after editting. still the same beep.
%%%%%%%%%%
\begin{figure}
\centering
\psfrag{celsius}{\textcelsius}
\psfrag{Vout}{$V_{out}$}
\includegraphics[width=\textwidth]{fig.eps}
\c |
|
i*f 发帖数: 85 | 28 【 以下文字转载自 EE 讨论区 】
发信人: iif (iif), 信区: EE
标 题: 求教一个tex中插入eps图片的问题
发信站: BBS 未名空间站 (Fri Aug 26 02:58:57 2005), 转信
我把ps格式的图片用gsview ps to eps转成了eps文件,用gsview打开看的时候一切正常
。但是当我在tex中用下一段代码试图把图贴进去的时候,最后的结果是图片上下颠倒了
,而
且不是放在caption的上面,而是下面。
\begin{figure}
\centering
\includegraphics[width=1\textwidth]{udc1.eps}
\caption{test figure 1.}
\label{fig:test1}
\end{figure}
本人tex新手,请大家帮忙看看,谢谢了! |
|
g**c 发帖数: 144 | 29 how about
\includegraphics[width=0.8\textwidth]{Item1}
if u can see the image now, then adjust bb to crop off margins. |
|
c****s 发帖数: 2487 | 30
你试过这个吗
\begin{frame}
\begin{figure}
\includegraphics[height=xxx]{test.eps}
\end{figure}
\end{frame}
我试了相对值(\textheight)和绝对值得办法,都不行
难道这里不能设置高度?
[width=0.8\textwidth]没有问题
这个成了。多谢!
另外不同的tex包的功能还不一样。公司系统里的竟然不认\subsubsection |
|
t**i 发帖数: 688 | 31 FIXED!
\usepackage{eso-pic}
\usepackage{color}
\AddToShipoutPicture{%
\AtTextCenter{%
\makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
\rotatebox{45}{\textsf{\textbf{\textcolor[gray]{0.90}{DRAFT}}}}}}%
}
} |
|
o******e 发帖数: 10 | 32 sorry, I meant
\begin{tabular*}{1\textwidth}{@{\extracolsep{\fill}}ccc}
1 & 2 & 3 \\
1 & 2 & 3 \\
\end{tabular*}
to |
|
s****n 发帖数: 80 | 33 p{.33\textwidth} for each column |
|
o******e 发帖数: 10 | 34 遇到一个表格问题,求助
我有下面一个latex文件。
我发现改变\renewcommand{\baselinestretch}{1.2}里面的值会导致表格在一个页面中
的位置不同。
比如说,1.JPG里面表格在页顶,\baselinestretch的值是1.2,当我改变\
baselinestretch的值到了1.4,就出现了2.jpg里面的情况:表格的位置到了中间。
我是希望每个表格都是1.JPG那样的显示方式,不知道为什么这个值的改变会造成这么
大的变化。还望大家指点迷津。谢谢。
\documentclass[letterpaper,12pt,notitlepage]{article}%
\oddsidemargin -0.0in \textwidth 6.5in \topmargin -0.5in \textheight 8.85in
\linespread{1}
\parskip 0.05in
\begin{document}
\renewcommand{\baselinestretch}{1.2}
\begin{table}[htp]
\caption{Table C |
|
k******s 发帖数: 537 | 35 \begin{figure*}
\centering
\includegraphics[width=\textwidth]{abc}
\caption{cde}
\label{fgh}
\end{figure*} |
|
l*****i 发帖数: 3929 | 36 可以,还可以改textwidth和textheight |
|
l*****i 发帖数: 3929 | 37 For example:
\setlength{\oddsidemargin}{0.55in}
\setlength{\textwidth}{5.85in}
\setlength{\textheight}{7.75in}
\setlength{\topmargin}{0.7in} |
|
P******g 发帖数: 83 | 38 actually, I tried it again in that way, but it still does not work
what I did:
using GS view to convert a one-page PDF file into .eps file (any problem
with this?)
then, insert the eps file into .tex file using the following commands
\begin{figure}
\begin{center}
\includegraphics[width=0.5\textwidth,height=0.5\textheight]{test}
\end{center}
\end{figure} |
|
P******g 发帖数: 83 | 39 \documentclass[letterpaper,12pt,oneside]{book}
\pagestyle{plain}
\usepackage{graphicx}
\usepackage{setspace}
\onehalfspace
\title{Experimental....}
\author{H.}
\begin{document}
\frontmatter
\maketitle
\newpage
\section*{Abstract:}
Decomposition of .......
\mainmatter
\chapter{Introduction}
Hydrogen ....
\begin{figure}
\begin{center}
\includegraphics[width=0.5\textwidth,height=0.5\textheight]{test.eps}
\end{center}
\end{figure}
\end{document}
Please look at the structure of the above file to see |
|
T*********r 发帖数: 11175 | 40 【 以下文字转载自 Physics 讨论区 】
发信人: TechniColor (坚决服从rourou的领导), 信区: Physics
标 题: 有SONY READER的用户要SHARE一些HEP的文件吗
发信站: BBS 未名空间站 (Tue Aug 14 23:28:15 2007), 转信
我把TASI LECTURE之类的做了一些
http://www.hep.wisc.edu/~wangkai/tmp/minibook/
重新LATEX过
\documentclass[12pt]{article}
\usepackage{geometry}
\special{papersize=90.00mm,120.00mm}
\geometry{paperwidth=90.00mm,paperheight=120.00mm,margin=0.3cm}
\begin{document}
\large
\textbf
另外如果有FIGURE
都设了 width=1\textwidth |
|
C******a 发帖数: 33 | 41 多谢回复。PNG,PS,TIFF,BMP,WMF都试过了,还是不行;是否我的源文件中有语法或者
逻辑错误?
\begin{figure}
\centering
\includegraphics[width=0.64\textwidth]{../zeroDegree/densityProfile5.jpg}
\caption{Density Profile for test case}
\label{fig:densityProfile}
\end{figure} |
|
b****t 发帖数: 114 | 42 Hi all,
I am using res class to write my c.v.
I donnot know how to set the length of head rule to cover whole page width.
Using \headrulewidth to set the thinkness of rule is easily done.
Tried to use \headwidth, or \fancyhead[LE,LO]{\offset -\sectionwidth} not
working. I can olny draw the line top through the right side of text, not
the section part. (in res, the textwidth is divided to 2: section and text).
Any advice is appreciated,
Beet |
|
s**c 发帖数: 1247 | 43 3x
这是文件最开始的几行设置
\documentclass[11pt]{article}
\def\spacingset#1{\def\baselinestretch{#1}\small\normalsize}
\parskip=1pt
\usepackage{amssymb,boxedminipage}
\usepackage{latexsym}
\usepackage{epsf,epsfig,graphics}
\usepackage{psfig}
\usepackage{amsmath}
\usepackage{bm}
\include{com}
\addtolength{\topmargin}{-0.9in}
\addtolength{\oddsidemargin}{-0.9in}
\addtolength{\textwidth}{1.9in}
\addtolength{\textheight}{2.0in}
\newtheorem{lemma}{Lemma}
\newtheorem{definition}{Definition}
\newtheorem{claim} |
|
b*******h 发帖数: 56 | 44 章节标题离顶部太远,用了无数命令还是不管用,以下为我尝试过的:
1,\oddsidemargin=.4in \textwidth=5.9in \topmargin=-0.5in \textheight=10.0in
\footskip=0.5in
2,\usepackage[left=1.3in, right=1.2in, top=1.0in, bottom=1.0in, includefoot
, headheight=-0.5pt, footskip=0.5in]{geometry}
3,\usepackage{fancyhdr}
\pagestyle{fancy}
\headheight=0pt \headsep=0pt
都解决不了这个问题,用的winEdt。
我又尝试了这个命令,
\usepackage[left=1.3in, right=1.2in, top=0.9in, bottom=1.0in, footskip=0.5in
]{geometry}
这里面的left,right,top,bottom footskip都管用,但是当我尝试加headheigh |
|
e**e 发帖数: 278 | 45 大家好,我Latex水平不怎么样,在毕业论文的格式上出了点问题,希望大家帮助,谢
谢。
我主要问题是需要在Contents 当中去掉Appendices 的目录,然后在List of Tables后
面加一个List of Appendices,但是发现我的Latex不让我这么做,不知道为什么。
我的Latex主文件如下:
\documentclass[12pt, letterpaper, amsmath, amssymb]{report}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{geometry}
\topmargin 0in \textheight 8in \oddsidemargin 0.7in \textwidth 5.6in
\input epsf
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{setspace}
\numberwithin{equation}{chapter}
\doublespacing |
|
e**e 发帖数: 278 | 46 参数错误,再发一次。
大家好,我Latex水平不怎么样,在毕业论文的格式上出了点问题,希望大家帮助,谢
谢。
我主要问题是需要在Contents 当中去掉Appendices 的目录,然后在List of Tables后
面加一个List of Appendices,但是发现我的Latex不让我这么做,不知道为什么。
我的Latex主文件如下:
\documentclass[12pt, letterpaper, amsmath, amssymb]{report}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{geometry}
\topmargin 0in \textheight 8in \oddsidemargin 0.7in \textwidth 5.6in
\input epsf
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{setspace}
\numberwithin{equation}{chapter}
\do |
|
l*********t 发帖数: 165 | 47 \newcommand{\makeheading}[1]%
{\hspace*{-\marginparsep minus \marginparwidth}%
\begin{minipage}[t]{\textwidth+\marginparwidth+\marginparsep}%
{\large \bfseries #1}\\[-0.15\baselineskip]%
\rule{\columnwidth}{1pt}%
\end{minipage}}
............
\makeheading{\center\Large Chapter}
这是个模版来的,就是在chapter 下加了一个下划线,长度可变的,
\center 命令就不起作用了,
要怎么办才能把"chapter" 居中呢?
谢谢 |
|
e*****m 发帖数: 320 | 48 我在写作业,肯定是一个问题对应一个图片,怎么能禁止图片浮动到别的地方啊?
我用的语法格式:
\begin{figure}[!h]
% Requires \usepackage{graphicx}
\includegraphics[width=0.9\textwidth]{../Figures/Fig4.eps}\\
\caption{Filtered signal via FOR iteration}\label{F4}
\end{figure} |
|
g*********r 发帖数: 124 | 49 \title{\parbox{2\textwidth}{\sloppy Very very very long title}} |
|
a**e 发帖数: 5794 | 50 我看不懂你的例子,就自己写了一个。
\documentclass{article}
\usepackage{color,calc}
\definecolor{demo@bgcolor}{gray}{.8}
\let\oldfboxsep\fboxsep
\newsavebox{\mybox}
\newenvironment{shadedbox}{
\noindent
\begin{lrbox}{\mybox}
\begin{minipage}[c]{.945\textwidth}
}{
\end{minipage}
\end{lrbox}%
\setlength{\fboxsep}{8pt}
\colorbox{demo@bgcolor}{\usebox{\mybox}}
\setlength{\fboxsep}{\oldfboxsep}
}
\begin{document}
\begin{shadedbox}
blar
\end{shadedbox}
\end{document} |
|