1. 程式人生 > >在LaTex中插入電路圖的方法(插入圖片)

在LaTex中插入電路圖的方法(插入圖片)

插入 exp order ring alt 表示 target index strong

主要的需求是要在文檔中插入電路圖。

有兩種方法,一種是直接在LaTex中繪制電路圖,使用的庫主要是circ和circuitikz


一、直接在LaTex中繪制電路圖

資料來源:

1、http://blog.csdn.net/trochowski/article/details/35282799

2、https://www.zhihu.com/question/23632588

3、http://weibo.com/p/2304189c6311cd0102x0rr

\documentclass{article}

\usepackage[basic,box,gate,oldgate,ic,optics,physics]{circ}

\begin{document}

\begin{circuit}0

\- 2 r %‘-‘表示導線,向右畫一根2厘米的導線,l--左,r--右,u--上,d--下

\R1 {text} r %畫一個電阻、編號1、描述文字是text、向右邊畫

\- 2 r

\- 4 d

\.1 %標記當前位置為“節點1”,會有一個黑點。

\- 2 l

\nl\C1 {} l %向左畫一個電容。前邊的\nl表示不顯示標簽“C1”

\- 4 l

\D1 {} K u %畫一個二極管、編號為1、沒有描述文字、與當前點連接的是哪一頭(K/A)、向上畫

\- 1 u

\end{circuit}

\end{document}

技術分享

二、使用插入圖像的方法插入電路圖

資料來源:

1、http://blog.csdn.net/qq_22812319/article/details/51889973

2、http://www.tlhiv.org/cgi-bin/rast2vec/index.cgi

\documentclass[12pt]{article}
\usepackage{graphicx} %use graph format
\usepackage{epstopdf}
\begin{document}
\begin{figure}

\centering
\includegraphics[height=6cm,width=9cm]{exp.eps}
%\caption{no}
\label{1}
\end{figure}
\end{document}

技術分享

技術分享

在LaTex中插入電路圖的方法(插入圖片)