⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 latexcad.sty

📁 latex数学文档编辑手册。。 。。 。。。
💻 STY
📖 第 1 页 / 共 2 页
字号:
    \end{figure}%
    %%%%%%%%%%\setlength{\@drawingscale}{1.0mm}%       % back to default
}%
%================================================================



%================================================================
% Place a PostScript figure in a source file
% \placepostscript*[placement]{ filename }{ caption string }{ crossref-label }
% `*' - the last two arguments are missing (ie no `Figure' caption & label )
% [placement] is optional (default is tbp, see Lamport p 176)
%
% Examples:-
% \placepostscript{test.eps}{A Test Picture}{fig:testa} % normal usage
% \setpostscriptwidth{80mm}                             % for next drawing only!
% \placepostscript[p]{test.eps}{thecaption}{fig:testb}  % on a page of floats
% \placepostscript*{test.eps}                           % no `Figure' label
% \placepostscript*[p]{test.eps}                        % as above, but place on a page of floats


% `*' as first arg - no `label' follows later
\def\placepostscript{\@ifstar{\@psnl}{\@psl}}%

% with label
% see if optional [placement] argument present 
\def\@psl{ \@ifnextchar[{\@dpsl}{\@dpsl[tbp]} }%

% no label macro - default selection
\def\@psnl{ \@ifnextchar[{\@dpsnl}{\@dpsnl[tbp]} }%

% the final macros
% See Antoni Diller, "LaTeX Line by Line", 1993
\def\@dpsl[#1]#2#3#4%    % with label
{%
    % WITH LABEL,placement=#1,file=#2,caption=#3,label=#4
    \begin{figure}[#1]%
    \begin{center}%
        \leavevmode%
        \hbox{ \epsfxsize=\@pswidth \epsffile{#2} }%
    \end{center}%
    \caption{#3} \label{#4}%
    \end{figure}%
    %%%%\setlength{\@pswidth}{\@dfltpswidth}%    % back to default
}%

\def\@dpsnl[#1]#2%       % no label 
{%
    % NO LABEL,placement=#1,file=#2
    \begin{figure}[#1]%
    \begin{center}%
        \leavevmode%
        \hbox{ \epsfxsize=\@pswidth \epsffile{#2} }%
    \end{center}%
    \end{figure}%
    %%%%%%%\setlength{\@pswidth}{\@dfltpswidth}%    % back to default
}%
%================================================================

%================================================================
% Place a LaTeX-CAD drawing on a slide
% \placeslidedrawing{ filename }{ title }
% Note that the title appears above the picture.
% Example:
% \drawingscale{0.4mm}
% \placeslidedrawing{test.lp}{ A Slide Drawing }
\def\placeslidedrawing#1#2%
{%
    \setlength{\unitlength}{\@drawingscale}%
    \begin{center} \mbox{#2} \end{center}%
    \vspace{-5mm}%
    \begin{center} \input #1 \end{center}%
    %%%%%%%\setlength{\@drawingscale}{\@dfltdrawingscale}%  % back to default
}%
%================================================================


%================================================================
% Place a GnuPlot graph on a slide
% Use: \placeslidegraph{ filename }{ title }
% Note that the title appears above the picture.
% Example:
% \placeslidegraph{test.gp}{ A Slide Graph }
\def\placeslidegraph#1#2%
{%
    \begin{center} \mbox{#2} \end{center}%
    \vspace{-10mm}%
    \begin{center} \input #1 \end{center}%
    %%%%%%%\setlength{\@drawingscale}{\@dfltdrawingscale}%  % back to default
}%
%================================================================

%================================================================
% Place a PostScript graph on a slide
% Use: \placeslidepostscript{ filename }{ title }
% Note that the title appears above the picture.
% Example:
% \placeslidepostscript{test.eps}{ A Slide PostScript }
\def\placeslidepostscript#1#2%
{%
    \begin{center} \mbox{#2} \end{center}%
    \vspace{-10mm}%
    \begin{center}%
        \leavevmode%
        \hbox{ \hspace{-15mm} \epsfxsize=\@pswidth \epsffile{#1} }%
    \end{center}%
    %%%%%%%%%\setlength{\@pswidth}{\@dfltpswidth}%    % back to default
}%
%================================================================


%================================================================
% macros for LaTeX-CAD program
\newcommand{\drawcenteredtext}[3]{\put(#1,#2){\makebox(0,0){#3}}}%
\newcommand{\drawlefttext}[3]{\put(#1,#2){\makebox(0,0)[l]{#3}}}%
\newcommand{\drawrighttext}[3]{\put(#1,#2){\makebox(0,0)[r]{#3}}}%
\newcommand{\drawframedtext}[3]{\put(#1,#2){\makebox(0,0)[c]{\framebox{#3}}}}%

\newcommand{\drawuptext}[3]{\put(#1,#2){\makebox(0,0){\rotate[l]{#3}}}}%
\newcommand{\drawdowntext}[3]{\put(#1,#2){\makebox(0,0){\rotate[r]{#3}}}}%

\newcommand{\drawstackedtext}[3]{\put(#1,#2){\makebox(0,0){\shortstack{#3}}}}%

\newcommand{\drawframebox}[5]{%
    \put(#1,#2){\makebox(0,0){\framebox(#3,#4)[cc]{#5}}}}%

\newcommand{\drawdashbox}[5]{%
    \put(#1,#2){\makebox(0,0){\dashbox{1}(#3,#4)[cc]{#5}}}}%

\newcommand{\drawoval}[5]{%
    \put(#1,#2){\oval(#3,#4) \makebox(0,0)[cc]{#5}}}%

\newcommand{\drawcircle}[4]{%
    \put(#1,#2){\circle{#3}} \put(#1,#2){\makebox(0,0)[cc]{#4}}}%

\newcommand{\drawshadedcircle}[5]{%
    \special{sh #5}\put(#1,#2){\circle{#3}} \put(#1,#2){\makebox(0,0)[cc]{#4}}}%

\newcommand{\drawellipse}[5]{%
    \put(#1,#2){\ellipse{#3}{#4} \makebox(0,0)[cc]{#5}}}%

\newcommand{\drawpath}[4]{\path(#1,#2)(#3,#4)}%
\newcommand{\drawdotline}[4]{\dottedline[.]{1}(#1,#2)(#3,#4)}%
\newcommand{\drawdashline}[4]{\dashline{1}(#1,#2)(#3,#4)}%
\newcommand{\drawvector}[5]{\put(#1,#2){\vector(#4,#5){#3}}}%

\newcommand{\drawshadowbox}[3]{\put(#1,#2){\makebox(0,0){\shadowbox{#3}}}}%
\newcommand{\drawdoublebox}[3]{\put(#1,#2){\makebox(0,0){\doublebox{#3}}}}%
\newcommand{\drawovalbox}[3]{\put(#1,#2){\makebox(0,0){\ovalbox{#3}}}}%
\newcommand{\drawOvalbox}[3]{\put(#1,#2){\makebox(0,0){\Ovalbox{#3}}}}%
\newcommand{\drawdot}[2]{\put(#1,#2){\circle*{0.5}}}%
\newcommand{\drawthickdot}[2]{\put(#1,#2){\circle*{1}}}%
\newcommand{\drawhollowdot}[2]{\put(#1,#2){\circle{1}}}%

\newcommand{\drawleftbrace}[3]%
{\drawcenteredtext{#1}{#2}{$\left\{ \rule[0mm]{0mm}{#3mm} \right.$}}%

\newcommand{\drawrightbrace}[3]%
{\drawcenteredtext{#1}{#2}{$\left\} \rule[0mm]{0mm}{#3mm} \right.$}}%

\newcommand{\drawoverbrace}[3]%
{\drawcenteredtext{#1}{#2}{$\overbrace{\rule[0mm]{#3mm}{0mm}}$}}%

\newcommand{\drawunderbrace}[3]%
{\drawcenteredtext{#1}{#2}{$\underbrace{\rule[0mm]{#3mm}{0mm}}$}}%

\newcommand{\drawarc}[5]%
{\put(#1,#2){\arc{#3}{#4}{#5}}}%

\newcommand{\drawshadebox}[8]%
{%
    % modified 17/7/96 - comment at end of lines
    \makebox(0,0)[cc]{\special{sh #8}\path(#1,#4)(#3,#4)(#3,#6)(#1,#6)(#1,#4)}%
    \put(#2,#5){\makebox(0,0){\makebox(0,0)[cc]{#7}}}%
}

\newcommand{\drawpostscript}[5]%
{%
    \put(#1,#2){\makebox(0,0)[cc]{\epsfxsize=#3mm\epsfysize=#4mm \epsffile{#5}}}%
}%


% \drawshadowframebox{x}{y}{w}{h}{text}
% example:
% \drawshadowframebox{80}{40}{100}{40}{this is a shadowframebox}
%
\newcommand{\drawshadowframebox}[5]%
{%                                        
    \put(#1,#2){\makebox(0,0){\shadowbox{\rule{0mm}{#4mm}\rule{#3mm}{0mm}}}}%
    \put(#1,#2){\makebox(0,0){#5}}%
}%

%
% End of LaTeX-CAD macros
%================================================================


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% picture macros from various sources
% for some reason, the order of these \input's is
% crucial (generates missing \begin{document} errors)
%\input rotate.sty
%\input fancybox.sty
%\input epic.sty
%\input eepic.sty
%\input epsf.sty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -