LaTeXStudio
LaTeXStudio
This guy hasn't written anything yet

注册于 3 years ago

回答
434
文章
241
关注者
151

我这里测试的样例是没有问题的,可以看看下面的例子:
image.png

例子代码:
0426.zip

仔细看看说明书,提到了的,label 后面要加上 % 来规避空格。

\documentclass[twocolumn]{article}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{showframe}
\title{The Dog}

\begin{document}

The dog or domestic dog (Canis familiaris or Canis lupus familiaris) is a domesticated descendant of the wolf, and is characterized by an upturning tail. The dog is derived from an ancient, extinct wolf, and the modern wolf is the dog's nearest living relative. The dog was the first species to be domesticated, by hunter–gatherers over 15,000 years ago, before the development of agriculture. Due to their long association with humans, dogs have expanded to a large number of domestic individuals and gained the ability to thrive on a starch-rich diet that would be inadequate for other canids.

The dog has been selectively bred over millennia for various behaviors, sensory capabilities, and physical attributes. Dog breeds vary widely in shape, size, and color. They perform many roles for humans, such as hunting, herding, pulling loads, protection, assisting police and the military, companionship, therapy, and aiding disabled people. Over the millennia, dogs became uniquely adapted to human behavior, and the human-canine bond has been a topic of frequent study. This influence on human society has given them the sobriquet of "man's best friend".

The dog or domestic dog (Canis familiaris or Canis lupus familiaris) is a domesticated descendant of the wolf, and is characterized by an upturning tail. The dog is derived from an ancient, extinct wolf, and the modern wolf is the dog's nearest living relative. The dog was the first species to be domesticated, by hunter–gatherers over 15,000 years ago, before the development of agriculture. Due to their long association with humans, dogs have expanded to a large number of domestic individuals and gained the ability to thrive on a starch-rich diet that would be inadequate for other canids.

\begin{figure}[!t]
    \subfigure[]{%
        \begin{minipage}[b]{\columnwidth}
            \centering
            \label{fig_test_case1:a}%
            \includegraphics[width=\columnwidth]{dog.jpeg}
        \end{minipage}
    }\\
    \subfigure[]{%
        \begin{minipage}[b]{\columnwidth}
            \centering
            \label{fig_test_case1:b}%
            \includegraphics[width=\columnwidth]{dog.jpeg}
        \end{minipage}
    }
    \caption{The dog or domestic dog is a domesticated descendant of the wolf. (a) Dog 1; (b) Dog 2.}
    \label{fig_test_case1}
\end{figure}

The dog has been selectively bred over millennia for various behaviors, sensory capabilities, and physical attributes. Dog breeds vary widely in shape, size, and color. They perform many roles for humans, such as hunting, herding, pulling loads, protection, assisting police and the military, companionship, therapy, and aiding disabled people. Over the millennia, dogs became uniquely adapted to human behavior, and the human-canine bond has been a topic of frequent study. This influence on human society has given them the sobriquet of "man's best friend".

The dog or domestic dog (Canis familiaris or Canis lupus familiaris) is a domesticated descendant of the wolf, and is characterized by an upturning tail. The dog is derived from an ancient, extinct wolf, and the modern wolf is the dog's nearest living relative. The dog was the first species to be domesticated, by hunter–gatherers over 15,000 years ago, before the development of agriculture. Due to their long association with humans, dogs have expanded to a large number of domestic individuals and gained the ability to thrive on a starch-rich diet that would be inadequate for other canids.

\end{document}

image.png

这样的排版方式是竖排了,不是限制文本宽度变成了换行了而已。简单一点自己 shortstack 单独设置行间距。如果不多的情况,临时解决。

与其这样不如给版面画个背景呢,用margin的方式实现批注。

完整的代码在哪里?最好有个复现代码,方便给出答案!

代码不完整,我这里整体调整如下:

\documentclass{article}
\usepackage{pgf,tikz}
\usetikzlibrary{shapes}
\makeatletter
\pgfdeclareshape{document}{
\inheritsavedanchors[from=rectangle] % this is nearly a rectangle
\inheritanchorborder[from=rectangle]
\inheritanchor[from=rectangle]{center}
\inheritanchor[from=rectangle]{north}
\inheritanchor[from=rectangle]{south}
\inheritanchor[from=rectangle]{west}
\inheritanchor[from=rectangle]{east}
% ... and possibly more
\backgroundpath{% this is new
% store lower right in xa/ya and upper right in xb/yb
\southwest \pgf@xa=\pgf@x \pgf@ya=\pgf@y
\northeast \pgf@xb=\pgf@x \pgf@yb=\pgf@y
% compute corner of ``flipped page''
\pgf@xc=\pgf@xb \advance\pgf@xc by-5pt % this should be a parameter
\pgf@yc=\pgf@yb \advance\pgf@yc by-5pt
% construct main path
\pgfpathmoveto{\pgfpoint{\pgf@xa}{\pgf@ya}}
\pgfpathlineto{\pgfpoint{\pgf@xa}{\pgf@yb}}
\pgfpathlineto{\pgfpoint{\pgf@xc}{\pgf@yb}}
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@yc}}
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@ya}}
\pgfpathclose
% add little corner
\pgfpathmoveto{\pgfpoint{\pgf@xc}{\pgf@yb}}
\pgfpathlineto{\pgfpoint{\pgf@xc}{\pgf@yc}}
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@yc}}
\pgfpathlineto{\pgfpoint{\pgf@xc}{\pgf@yc}}
}
}
\makeatother
\begin{document}
\begin{tikzpicture}
\node[shade,draw,shape=document,inner sep=2ex]  (x)  {Remark};
\node[fill=yellow!80!black,draw,ellipse,double]
at ([shift=(-80:3cm)]x) (y) {Use Case};
\draw[dashed] (x) -- (y);
\end{tikzpicture}

\end{document}

image.png

没看懂问题是什么,看看这个代码:

 \documentclass{IEEEtran}

\usepackage{algorithm}
\usepackage{algorithmic}
\begin{document}

 \begin{algorithm}[H]
 \caption{Algorithm for ...}
 \begin{algorithmic}[1]
 \renewcommand{\algorithmicrequire}{\textbf{Input:}}
 \renewcommand{\algorithmicensure}{\textbf{Output:}}
 \REQUIRE in
 \ENSURE  out
 \\ \textit{Initialisation} :
  \STATE first statement
 \\ \textit{LOOP Process}
  \FOR {$i = l-2$ to $0$}
  \STATE statements..
  \IF {($i \ne 0$)}
  \STATE statement..
  \ENDIF
  \ENDFOR
 \RETURN $P$
 \end{algorithmic}
 \end{algorithm}

\end{document} 

image.png

什么信息都没有,就这样的问题,无法回答。

第二行明显少了一个单元格,加上就好了。

\begin{tabular}{|c|c|c|c|c|}
\hline
\multirow{2}*{姓名} & \multicolumn{3}{c|}{成绩} & \multirow{2}{*}{总分} \\ \cline{2-4}
&语文&数学&英语& \\ \hline
张三 &98 &100&92 & 290 \\ \hline
李四 &99 &91 &99 & 289 \\ \hline
\end{tabular}
\begin{question}

image.png

你的参数就没加 breakable :

\tcbset{%
 %enhanced,
 breakable,
    colback      = white,
    tikz         = {opacity=0.8,transparency group},
    colframe     = black,
    title filled = false,
    colbacktitle = white,
}%%

这样设置。

发布
问题