我最近使用 XCircuit 创建了一个 eps 图。组件的标签以“LaTeX 模式”编写,具有默认的 LaTeX 字体。当我尝试编译我的 .tex 文件时,出现以下错误:
(/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/epsfig.sty)
No file ELEC331_mono.aux.
[1] (../fig/exp1_bridge2.tex
! Package keyval Error: scale=1 undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.16 }
% close 'scalebox'
?
这是我的主要 .tex 文件:
\documentclass[11pt,a4paper,titlepage,twoside]{article}
\usepackage[turkish,english]{babel}
\usepackage[latin5]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{titlesec}
\usepackage{float}
\usepackage{enumitem}
\usepackage{cite}
\usepackage{url}
\usepackage{epsfig}
\graphicspath{{../fig/}}
\title{\textbf{ELEC 331 - Electronic Circuits 2} \\ Laboratory Manuals}
\author{Author}
\begin{document}
\maketitle
\input{../fig/exp1_bridge2.tex}
\end{document}
以下是 XCircuit 创建的 .tex 文件:
% XCircuit output "ELEC331_LAB/fig/exp1_bridge2.tex" for LaTeX input from ELEC331_LAB/fig/exp1_bridge2.eps
\def\putbox#1#2#3#4{\makebox[0in][l]{\makebox[#1][l]{}\raisebox{\baselineskip}[0in][0in]{\raisebox{#2}[0in][0in]{\scalebox{#3}{#4}}}}}
\def\rightbox#1{\makebox[0in][r]{#1}}
\def\centbox#1{\makebox[0in]{#1}}
\def\topbox#1{\raisebox{-0.60\baselineskip}[0in][0in]{#1}}
\def\midbox#1{\raisebox{-0.20\baselineskip}[0in][0in]{#1}}
\scalebox{1}{
\normalsize
\parbox{4.42188in}{
\includegraphics[scale=1]{exp1_bridge2}\\
% translate x=672 y=278 scale 0.38
\putbox{3.97in}{1.25in}{1.20}{vout(t)}%
\putbox{0.06in}{1.34in}{1.20}{vin(t)}%
\putbox{2.22in}{1.92in}{1.20}{D1}%
} % close 'parbox'
} % close 'scalebox'
\vspace{-\baselineskip} % this is not necessary, but looks better
有什么建议吗?
答案1
问题在于土耳其语,它使字符 = 处于活动状态。请参阅 tex.stackexchange.com/q/160385/27635 了解解决方法
谢谢 karlkoeller,这与土耳其语有关。正如您在其他评论中所建议的那样,在命令之前和之后添加\shorthandoff{=}
和解决了这个问题。\shorthandon{=}
\includegraphics