Dark theme for Texstudio - TeX - LaTeX
Dark theme for Texstudio
~~~ 1、window系统如下操作 ~~~
1. texstudio的配置文件
texstudio 的配置文件在~/.config/texstudio/texstudio.ini
其中配置文件包括如下几部分
[General]
……
[texmaker]
……
[version]
……
[formats]
……
其中[texmaker]部分是具体的tex配置,可以看一下。而要更改的主题部分需要在[formats]部分进行修改。
2. 更改texstudio主题
参考一些网址https://tex.stackexchange.com/questions/108315/how-can-i-set-a-dark-theme-in-texstudio
只需要将上面网址中的一些[formats]……部分copy并覆盖texstudio.ini中的[formats]……部分即可,但是在覆盖之前必须先把Texstudio关掉。多试几个看看哪个更符合自己口味即可。
---------------------
参考:https://blog.csdn.net/mifangdebaise/article/details/78643090
~~~ 2、Mac OS X 如下操作 ~~~
Maxima and wxMaxima Installation
This is my preferred free alternative to computer algebra systems (CASs) like Maple, Mathematica, and SymPy in Python.
Windows users: I suggest the slightly more user friendly front end wxMaxima (the download includes both Maxima and the wxMaxima front end), or you can download plain ol' Maxima.
Mac users: First, install homebrew (https://brew.sh/) and then download and install Maxima and wxMaxima via:
brew tap homebrew/science
brew install maxima
brew install wxmaxima
Linux users: Most distributions provide binaries for both Maxima and wxMaxima. Otherwise, see the links above.
Resources to get started with Maxima: Instant Maxima (PDF) by Steve Ellner, based partly on Richard H. Rand's Introduction to Maxima. See also the Maxima website and Ted Woolett's Maxima by Example.
RStudio and TeXstudio Installation
Below are instructions to install RStudio and TeXstudio so that (1) you can use R and create professional looking documents using LaTeX, and (2) so that both RStudio and TeXstudio can compile knitr/sweave documents -- integrated R code in a LaTeX document that automates running the code and inserting it and/or it's output into the document without any additional formatting by you! This also allows you to use R Markdown to make high quality R documents without the learning curve associated with LaTeX.
Please install this software in the order give below, since both Rstudio and TeXstudio need your R and LaTeX distributions to be installed first.
Install R, a LaTeX distribution, then RStudio and TeXstudio
- Install either MikTeX (Windows) or TeX Live (Mac OS X) via the MacTeX distribution, or (recommended!) just install BasicTeX (the light version of MacTeX that can automatically download missing packages later; only 110 megabytes instead of 2 gigabytes) and Ghostscript (look for the Ghostscript.pkg link here).
Make sure the settings are set to download missing packages on the fly, instead of asking you for confirmation! This will prevent many future headaches.
- Install R (www.r-project.org).
Once installed, run the command
install.packages("knitr")
- . Better yet, install the all of these packages (recommended):
install.packages(c("bbmle", "bipartite", "bitops", "car", "caret", "coda", "colorspace", "cowplot", "data.table", "deBInfer", "deSolve", "devtools", "dichromat", "digest", "emdbook", "forecast", "GenSA", "glmnet", "googlesheets", "googleVis", "gtable", "igraph", "KernSmooth", "knitr", "labeling", "lubridate", "manipulate", "maps", "maptools", "markovchain", "mime", "multcomp", "munsell", "mvtnorm", "optimx", "plyr", "poweRlaw", "proto", "qcc", "randomForest", "RColorBrewer", "Rcpp", "RCurl", "reshape2", "rgl", "rmarkdown", "RMongo", "RMySQL", "RODBC", "rootSolve", "roxygen2", "RPostgreSQL", "RSQLite", "scales", "scatterplot3d", "seas", "shiny", "sp", "sqldf", "stargazer", "swirl", "tidyverse", "vegan", "vcd", "XML", "xtable", "xts", "zoo"), repos='http://cran.us.r-project.org')
- Install RStudio (www.rstudio.org) and then TeXstudio (www.texstudio.org; Mac users may prefer to also install TeXShop (an alternative to TeXstudio), and maybe LaTeXiT.)
Run Rstudio, and go to Tools > Global Options > Sweave and change "Weave Rnw files using:" from Sweave to knitr. (While you're in there, you can get a dark theme by clicking on Appearance and setting the RStudio theme to Modern, then selecting a dark editor theme such as Merbivore Soft).
Configure TeXstudio to use R + knitr
- Go to Options > Configure TeXstudio > Build and edit the "User Commands" to read
"C:\YOUR-R-DIRECTORY\bin\x64\Rscript.exe" -e "knitr::knit2pdf('%.Rnw')"Mac Users: use this instead:
R -e "knitr::knit2pdf('%.Rnw')" | txs:///pdflatex | txs:///view-pdf-internalNote: the long filename for Rscript.exe needs to reflect where R files are located on your computer!
See also http://yihui.name/knitr/demo/editors/
- Configure a Keyboard Shortcut to compile knitr (*.Rnw) documents:
Once the User Command above is defined, you can assign a keyboard shortcut to quickly compile knitr (*.Rnw) files. I prefer F4 to the default of Alt-Shift-F1 (TeXstudio recently changed the default shortcut to "Build & View" a LaTeX (*.tex) document from F1 to F5, hence my preference for F4 to build knitr (*.Rnw) documents). Another alternative might be Shift+F5. (Note that F7 will display the PDF, once compiled.) To do this...
Go to Options > Configure TeXstudio > Shortcuts > Tools > User.
Click the second column ("Current Shortcut") entry for knitr then scroll up to F4 or hit the F4 key (typing "F" then "4" will not work!). Optional: Click the 3rd column (Additional Shortcut) and set it to Shift+F5.
Now save, and you should be all set!
- To test it out, download this knitr example and try to compile it by hitting F4: homework-knitr-template.Rnw
Troubleshooting:
- R plots might seem to be missing symbols (e.g. the circles in a scatter plot). Basically the LaTeX output is missing embedded fonts, which show up in Adobe Acrobat and other PDF viewers, but won't in the TeXstudio DVI viewer. Solution: When you set code chunks at the start of your Rnw document, set
dev = 'cairo_pdf'instead of the defaultpdf(). This might modify your figure dimension on the page. (via #6 at https://yihui.name/en/2013/06/tips-for-writing-an-r-book/).
Downside: cairo_pdf may output bitmaps, not vector graphics! - Make sure MikTex (or whatever LaTeX software you installed) works properly. Once you can compile *.tex documents in TexStudio, THEN debug problems with *.Rnw documents.
- You may need to manually add the MikTeX path to your user environment.
- You may be prompted to install a missing LaTeX package when compiling Rnw documents. Unfortunately, it will do this one package at a time until they're all installed, so keep recompiling over and over again until all the required packages install. You'll only need to go through this process once!
- Make sure you have installed the
knitrpackage in R before you try to compile *.Rnw documents in TeXstudio. Better yet, make sure you can compile an R Markdown document to PDF in R Studio. - Mac users: If you prefer to stick with TeXShop instead of TeXstudio, you can configure TeXShop to work with knitr. See instructions at https://yihui.name/knitr/demo/editors/.
Dark Color Theme for RStudio
Run Rstudio and go into Tools > Global Options... > Appearance. Set the Rstudio theme to Modern and select one of the darker Editor themes(e.g., Merbivore).
**********************完美的分割线*************************
*****************Dark Color Theme for TeXstudio Editor*****************
Instructions for installing a pre-configured dark theme for the TeXstudio editor:

- Download a dark color theme:Open up the color theme in a text editor (I prefer notepad++).
- My dark theme:
Texstudio-dark-Hurtado.txsprofile - Various examples at http://tex.stackexchange.com/questions/108315/how-can-i-set-a-dark-theme-in-texstudio.
- My dark theme plus some editor modifications (e.g. supressed underline of grammar mistakes, etc.):
Texstudio-darkplus-Hurtado.txsprofile
- My dark theme:
- Open up the color theme in a text editor (I prefer notepad++).
- Next come the "not-so-user-friendly" steps, so let me walk you through them!Go to Options > Load profile... and load the newly edited
custom-dark1.txsprofile.- Go to Options > Save profile... and save a backup of the current profile to something like
user-default.txsprofile. - Do this again, but instead save to a file named something like
custom-dark1.txsprofile. Note the directory this file is saved it! - Open
custom-dark1.txsprofile(or whatever you named it) with a text editor (again, I like notepad++) and scroll to the very bottom which should look like...
[formats]
version=1.0Note these are the first two lines of the dark theme file you downloaded! Copy and paste the contents of the dark them to this section of
custom-dark1.txsprofilefile and save. The [formats] section ofcustom-dark1.txsprofileshould now read...
[formats]
version=1.0
data\normal\priority=-1
data\normal\bold=false
...
- Go to Options > Save profile... and save a backup of the current profile to something like
- Go to Options > Load profile... and load the newly edited
custom-dark1.txsprofile. - Restart TexStudio and open a file, and you should see the dark themed editor!
- Finally, you can further modify your color scheme by going to Options > Configure TeXstudio > Syntax Highlighting
Dark theme for Texstudio - TeX - LaTeX的更多相关文章
- TeXstudio 编写Latex论文的若干问题
TeXstudio 编写Latex论文的若干问题解决方案总结 问题1: 如何安装TeXstudio 以及 Texstudio当中的中文字体使用问题. 一.如何安装TeXstudio 很 ...
- 在Visual Studio 2012 Blue theme下使用Dark theme的文本编辑器颜色设置
Visual Studio 2012 默认提供了3种color theme: blue,light,和dark.其中dark的文本编辑器颜色设定很爽,可是整个菜单项加上一些小的窗口如Find Resu ...
- How To Set Dark Theme in Visual Studio 2010
Want to use the visual studio color theme editor to set the dark theme or other themes? Below shows ...
- chrome & dark theme
chrome & dark theme Dark Reader Extensions https://darkreader.org/help/en/ https://chrome.google ...
- Chrome Extension & Dark Theme
Chrome Extension & Dark Theme https://chrome.google.com/webstore/detail/eimadpbcbfnmbkopoojfekhn ...
- CTEX - 在线文档 - TeX/LaTeX 常用宏包
CTEX - 在线文档 - TeX/LaTeX 常用宏包 页面与章节标题式样 浮动对象及标题设计 生成与插入图形 表格与列表 目录与索引 参考文献 数学与化学公式 ...
- Texstudio、Latex 大段注释,多行注释 快捷键
Texstudio.Latex 大段注释,多行注释 快捷键 单行注释:在每行前加 % 即可 大段注释: \usepackage{verbatim} \begin{comment} ... \end ...
- MathJax TeX & LaTeX
MathJax TeX & LaTeX mathcal https://leetcode-cn.com/problems/binary-search/solution/er-fen-cha-z ...
- switchable css dark theme in js & html custom element
switchable css dark theme in js & html custom element dark theme / dark mode https://codepen.io/ ...
随机推荐
- Fzu软工第二次作业-词频分析
(0)前言: Github项目 作业地址 (1)PSP表格: PSP2.1 Personal Software Process Stages 预估耗时(分钟) 实际耗时(分钟) Planning 计划 ...
- Appium笔记(一) 丶Appium的自我介绍
一.我是谁,我的特点是什么 Appium是一款开源测试自动化框架,可用于原生.混合和移动Web应用程序.它使用WebDriver协议驱动iOS,Android和Windows应用程序.重要的是,App ...
- BKL 大内核锁
BKL 大内核锁 BKL是一种递归锁.一个进程可以多次请求一个锁,并不会像自旋锁那么产生死锁. BKL可以在进程上下文中. BKL是有害的. 在内核中不鼓励使用BKL.一个执行线程可以递归的请求锁lo ...
- 命令行net time同步时间(内网)
首先还是推荐大家使用Internet时间来同步自己计算机的时间,这样做主要是方便,就是设置一个ntp服务器,我推荐下面的三个ntp服务器地址. time.asia.apple.com //亲测有效 a ...
- FastAdmin 将会员模块升级为基础模块的升级指导
说明 FastAdmin 于 2018-01-19 将会员模块升级为基础模块. 因为有数据库改动,所以需要对旧的数据库进行升级,不然没有办法使用和显示. 升级流程 git 合并代码 略 导入数据表 D ...
- [CLPR] 定位算法探幽 - 边缘和形态学
一. 引言 如何从一副图片中找到车牌? 这是机器视觉的一个应用. 理所当然地, 思考的角度是从车牌本身的信息入手, 为了讨论方便, 下面均以长窄型蓝白车牌为例. 下图就是这样一张车牌的基本信息. 一眼 ...
- css 通用兄弟选择器( ~ )
stylus设置兄弟元素样式: 鼠标浮动在 .video-li 元素上时,.video-li 兄弟中 .video-info 下的 .word 显示. .video-li &:hover ~ ...
- RK3288 wifi模块打开或关闭5G信号
CPU:RK3288 系统:Android 5.1 如果硬件使用的wifi模块支持5G,则系统设置中打开wifi,除了会搜索到普通的2.4G信号,还会搜索到xxx_5G信号. 如果路由器开了5G信号, ...
- ser2net的编译及测试
1. 将ser2net编译进内核 1.1 make menuconfig 1.2 选上ser2net NetWork——>ser2net 2. 烧写固件 3.ser2net配置文件: 修改/et ...
- Django 博客项目01 数据库设计与验证码校验+Ajax登录
数据库设计 from django.db import models from django.contrib.auth.models import AbstractUser class UserInf ...