代码拉取完成,页面将自动刷新
同步操作将从 连享会/eda 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*******************************************************************************
This is completely experimental and not intended for distribution with
eda at this time. It is an attempt at refactoring some of the functionality
of the internals in eda to maintain LaTeX entries for specific captions,
titling, and reference entries outside of individual sub routines and/or
the main program.
*******************************************************************************/
*! edaentry
*! v 0.0.0
*! 07JUL2018
cap prog drop edaentry
prog def edaentry
version 14
syntax , id(string asis) XVar(varname) Type(string asis) ///
[ YVar(varname) AUXvar(varname) ]
// Remove LaTeX Special Characters from variable name
texclean "`xvar'", r
// Store in local macro
loc xref `r(clntex)'
// Get label info
texclean "`: var l `xvar''"
// Set title/caption info
loc xlab `r(clntex)'
// If yvar is passed
if "`yvar'" != "" {
// Remove LaTeX Special Characters from variable name
texclean "`yvar'", r
// Store variable name for use in references
loc yref `r(clntex)'
// Get label info
texclean "`: var l `xvar''"
// Set title/caption info
loc xlab `r(clntex)'
} // End IF Block for yvars
// If auxvar passed create macros
if "`auxvar'" != "" {
// Remove LaTeX Special Characters from variable name
texclean "`auxvar'", r
// Store variable name for use in references
loc auxref `r(clntex)'
// Get label info
texclean "`: var l `auxvar''"
// Set title/caption info
loc auxlab `r(clntex)'
} // End IF Block for auxvars
// Check the type of the entry to add
if "`type'" == "bar" {
// Add the graph to the LaTeX file
file write doc "\begin{figure}" _n
file write doc `"\caption{`xlab' \label{fig:`type'`xref'}}"' _n // Add Identifier
file write doc `"\includegraphics{`type'`xvar'.pdf}"' _n // Add Identifier
file write doc "\end{figure} \newpage\clearpage" _n
} // End IF Block for bar graphs
// If the type is
else if "`type'" == "pie" {
// Add the graph to the LaTeX file
file write doc "\begin{figure}" _n
file write doc `"\caption{`: char `v'[title]' \label{fig:`type'}}"' _n // Add Identifier
file write doc `"\includegraphics{`type'`xvar'.pdf}"' _n // Add Identifier
file write doc "\end{figure} \newpage\clearpage" _n
} // End ELSEIF Block for
// If the type is
else if "`type'" == "" {
// Add the graph to the LaTeX file
file write doc "\begin{figure}" _n
file write doc `"\caption{`: char `v'[title]' \label{fig:`type'}}"' _n // Add Identifier
file write doc `"\includegraphics{`type'.pdf}"' _n // Add Identifier
file write doc "\end{figure} \newpage\clearpage" _n
} // End ELSEIF Block for
// If the type is
else if "`type'" == "" {
// Add the graph to the LaTeX file
file write doc "\begin{figure}" _n
file write doc `"\caption{`: char `v'[title]' \label{fig:`type'}}"' _n // Add Identifier
file write doc `"\includegraphics{`type'.pdf}"' _n // Add Identifier
file write doc "\end{figure} \newpage\clearpage" _n
} // End ELSEIF Block for
// If the type is
else if "`type'" == "" {
// Add the graph to the LaTeX file
file write doc "\begin{figure}" _n
file write doc `"\caption{`: char `v'[title]' \label{fig:`type'}}"' _n // Add Identifier
file write doc `"\includegraphics{`type'.pdf}"' _n // Add Identifier
file write doc "\end{figure} \newpage\clearpage" _n
} // End ELSEIF Block for
// If the type is
else if "`type'" == "" {
// Add the graph to the LaTeX file
file write doc "\begin{figure}" _n
file write doc `"\caption{`: char `v'[title]' \label{fig:`type'}}"' _n // Add Identifier
file write doc `"\includegraphics{`type'.pdf}"' _n // Add Identifier
file write doc "\end{figure} \newpage\clearpage" _n
} // End ELSEIF Block for
// If the type is
else if "`type'" == "" {
// Add the graph to the LaTeX file
file write doc "\begin{figure}" _n
file write doc `"\caption{`: char `v'[title]' \label{fig:`type'}}"' _n // Add Identifier
file write doc `"\includegraphics{`type'.pdf}"' _n // Add Identifier
file write doc "\end{figure} \newpage\clearpage" _n
} // End ELSEIF Block for
// If the type is
else if "`type'" == "" {
// Add the graph to the LaTeX file
file write doc "\begin{figure}" _n
file write doc `"\caption{`: char `v'[title]' \label{fig:`type'}}"' _n // Add Identifier
file write doc `"\includegraphics{`type'.pdf}"' _n // Add Identifier
file write doc "\end{figure} \newpage\clearpage" _n
} // End ELSEIF Block for
// If the type is
else if "`type'" == "" {
// Add the graph to the LaTeX file
file write doc "\begin{figure}" _n
file write doc `"\caption{`: char `v'[title]' \label{fig:`type'}}"' _n // Add Identifier
file write doc `"\includegraphics{`type'.pdf}"' _n // Add Identifier
file write doc "\end{figure} \newpage\clearpage" _n
} // End ELSEIF Block for
// If the type is
else if "`type'" == "" {
// Add the graph to the LaTeX file
file write doc "\begin{figure}" _n
file write doc `"\caption{`: char `v'[title]' \label{fig:`type'}}"' _n // Add Identifier
file write doc `"\includegraphics{`type'.pdf}"' _n // Add Identifier
file write doc "\end{figure} \newpage\clearpage" _n
} // End ELSEIF Block for
// If the type is
else if "`type'" == "" {
// Add the graph to the LaTeX file
file write doc "\begin{figure}" _n
file write doc `"\caption{`: char `v'[title]' \label{fig:`type'}}"' _n // Add Identifier
file write doc `"\includegraphics{`type'.pdf}"' _n // Add Identifier
file write doc "\end{figure} \newpage\clearpage" _n
} // End ELSEIF Block for
// For any other case
else {
} // End ELSE Block for other cases
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。