Code Monkey home page Code Monkey logo

zju_latex_labreport's Introduction

实验报告模板

如何使用

每次实验报告复制template文件夹,编辑该文件夹下的main.tex写实验报告。

关于beginfile.tex

考虑到同一门课程的实验报告格式基本统一,将正文之前的设置部分全部放入beginfile.tex,如果需要修改页面格式/添加package,请编辑该文档。

关于resize.pycontrast.py

template文件夹下,有resize.pycontrast.py两个python文件。

resize.py用于统一图片大小(默认为示波器屏幕的4:3)和反转图片颜色(考虑到示波器屏幕底色为黑色)。

contrast.py用于修改图片为黑白并调整对比度。

将需要格式化的图片放在pic文件夹下,并依次运行resize.pycontrast.py

(两个代码基本是从网上抄来改的……我也不懂)

tips:在实验拍波形的时候可以用手机相机自带的文档扫描拍,会自动裁剪。

写报告时可能用到的一些代码示例

  • 插入单张图片
\begin{figure}[H]
	\centering
	\includegraphics[width=0.3\textwidth]{文件名}
	\caption{图片说明}
\end{figure}
  • 插入多张图片(多张子图)
\begin{figure}[H]
	\centering
	\subfigure[第一张子图说明]{
		\includegraphics[width=0.3\textwidth]{第一张子图文件名}
	}
	\subfigure[第二张子图说明]{
		\includegraphics[width=0.3\textwidth]{第二张子图文件名}
	}
	\caption{图片说明}
\end{figure}
  • 分为左右两列(需要在一侧插入图片的时候更推荐使用这种方式)
\hspace{-2.8em}\begin{tabular}{l l}
	\begin{minipage}{0.6\textwidth}
		左列内容
	\end{minipage}
	&
	\begin{minipage}{0.4\textwidth}
		右列内容
	\end{minipage}
\end{tabular}
  • 插入表格

建议在tablesgenerator上生成后复制粘贴到main.tex

zju_latex_labreport's People

Contributors

stupidthree avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.