Code: Select all
\documentclass[10pt]{article}%\documentclass{byuPhDprop}\usepackage[usenames]{color}\begin{document}\begin{figure}\textcolor{red}{this is red}\end{figure}\end{document}
Code: Select all
\documentclass[10pt]{article}%\documentclass{byuPhDprop}\usepackage[usenames]{color}\begin{document}\begin{figure}\textcolor{red}{this is red}\end{figure}\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Code: Select all
% Save LaTeX kernel version of \@xfloat\makeatletter\let\my@xfloat\@xfloat\makeatother\documentclass{byuPhDprop}% Create a modified copy of \@xfloat using the kernel definition\makeatletter\def\@xfloat#1[#2]{\my@xfloat#1[#2]%\def\baselinestretch{1}%\@normalsize \normalsize}\makeatother\usepackage{pgf}\usepackage{tikz}\usetikzlibrary{arrows,shapes,automata,backgrounds}\begin{document}\begin{figure}[htb]\centering\begin{tikzpicture}[node distance=7mm, line/.style={>=latex}]\tikzstyle{vertex} = [circle,draw=black, fill=white, minimum size=10mm]\node[vertex] (x) at (0,0) {$x$};\end{tikzpicture}\end{figure}\end{document}
Code: Select all
\def\@xfloat#1[#2]{\ifhmode \@bsphack\@floatpenalty -\@Mii\else\@floatpenalty-\@Miii\fi\def\@captype{#1}\ifinner\@parmoderr\@floatpenalty\z@\else\@next\@currbox\@freelist{\@tempcnta\csname ftype@#1\endcsname\multiply\@tempcnta\@xxxii\advance\@tempcnta\sixt@@n\@tfor \@tempa :=#2\do{\if\@tempa h\advance\@tempcnta \@ne\fi\if\@tempa t\advance\@tempcnta \tw@\fi\if\@tempa b\advance\@tempcnta 4\relax\fi\if\@tempa p\advance\@tempcnta 8\relax\fi}\global\count\@currbox\@tempcnta}\@fltovf\fi\global\setbox\@currbox\vbox\bgroup\def\baselinestretch{1}\@normalsize\boxmaxdepth\z@\hsize\columnwidth \@parboxrestore}
The macro is a simpler redefinition of a LaTeX kernel command that determines how floating environments likebeytepeli wrote:Can you interpret for me whether to decide that this macro is really needed or not?
{table}
or {figure}
behave. I can't say why the developers of your class decided to do so but if you don't encounter any problems with floats you should be safe to remove this part. You could make a local copy of the class supposedly under a new name (depends on the license of the class) where you just enclose the whole definition between \iffalse
and \fi
. The whole part in between will be ignored by LaTeX.When comparing this redefinition with the original definition of LaTeX 2.09 and LaTeX2e one see that this re-definition is actually based on the 2.09 definition of \@xfloat. So dropping it seems like a very good idea to me.beytepeli wrote:Can you interpret for me whether to decide that this macro is really needed or not?
Code: Select all
\def\baselinestretch{1}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p