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

    1. 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.

    2. Install R (www.r-project.org).
    3. 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‘)

  1. 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

  1. 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-internal

    Note: 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/

  2. 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!

  3. To test it out, download this knitr example and try to compile it by hitting F4: homework-knitr-template.Rnw

Troubleshooting:

  1. 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 default pdf(). 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!
  2. 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.
  3. You may need to manually add the MikTeX path to your user environment.
  4. 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!
  5. Make sure you have installed the knitr package 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.
  6. 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:

  1. Download a dark color theme:Open up the color theme in a text editor (I prefer notepad++).

    1. My dark theme: Texstudio-dark-Hurtado.txsprofile
    2. Various examples at http://tex.stackexchange.com/questions/108315/how-can-i-set-a-dark-theme-in-texstudio.
    3. My dark theme plus some editor modifications (e.g. supressed underline of grammar mistakes, etc.): Texstudio-darkplus-Hurtado.txsprofile
  2. Open up the color theme in a text editor (I prefer notepad++).
  3. 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.
    1. Go to Options > Save profile... and save a backup of the current profile to something like user-default.txsprofile.
    2. Do this again, but instead save to a file named something like custom-dark1.txsprofile. Note the directory this file is saved it!
    3. 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.0
      

      Note 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.txsprofile file and save. The [formats] section of custom-dark1.txsprofile should now read

      ...
      [formats]
      version=1.0
      data\normal\priority=-1
      data\normal\bold=false
      ...
      
  4. Go to Options > Load profile... and load the newly edited custom-dark1.txsprofile.
  5. Restart TexStudio and open a file, and you should see the dark themed editor!
  6. Finally, you can further modify your color scheme by going to Options > Configure TeXstudio > Syntax Highlighting

原文地址:https://www.cnblogs.com/wt869054461/p/9904791.html

时间: 2024-08-27 23:26:36

Dark theme for Texstudio - TeX - LaTeX的相关文章

TeXstudio 编写Latex论文的若干问题

TeXstudio 编写Latex论文的若干问题解决方案总结 问题1: 如何安装TeXstudio 以及 Texstudio当中的中文字体使用问题. 一.如何安装TeXstudio 很多人推荐使用TexStudio.注意,texstudio是一个latex编译器,而非latex的软件实体.正如rstudio和r的关系.因此,先要安装latex软件,之后才能使用TexStudio. 1. 到这里下载并安装MikTex:http://miktex.org/ 或者TexLive2015:http://

科学论文写作工具TEX/LaTEX/CTEX

0.TEX陈年往事 Knuth教授在写作TAOCP(The Art of Computer Programming)时,发现书商把他书中的数学式排的太难看,于是决定自行开发一个非常适合排数学式的排版语言,于是有了TEX,并且迅速流行并吸引了很多的科学工作者使用TEX作为科学论文写作.(大牛就是大牛) ps:TAOCP介绍的网站,主要是关于算法的.http://www-cs-staff.stanford.edu/~knuth/taocp.html 1.LaTEX/CTEX TEX是低级的排版语言,

[daily]在dark theme下,启动wps的方法

dark之后,wps的字体变成了灰白的 这样启动 env GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc /usr/bin/et -style gtk+ %f 原文地址:https://www.cnblogs.com/hugetong/p/9959244.html

【转】LaTeX 符号命令大全

函数.符号及特殊字符 声调 语法 效果 语法 效果 语法 效果 \bar{x} \acute{\eta} \check{\alpha} \grave{\eta} \breve{a} \ddot{y} \dot{x} \hat{\alpha} \tilde{\iota} 函数 语法 效果 语法 效果 语法 效果 \sin\theta \cos\theta \tan\theta \arcsin\frac{L}{r} \arccos\frac{T}{r} \arctan\frac{L}{T} \sin

LaTeX 有哪些「新手须知」的内容?

孟晨 ,在 LaTeX 话题下写错 LaTeX 名字的,一律… 陈硕等 137 人赞同 这是个好问题,虽然提问提得很大.不是很好答,权当抛砖引玉了. 天字第一号原则:不要到网上抄代码,尤其是似懂非懂的阶段.除非代码的作者给出了对代码的解释,并说明了代码的适用范围和使用效果. 解释:虽然 TeX 及 LaTeX 内核本身相对稳定,但是 LaTeX 相关的宏包则不那么稳定.对于中文用户来说,LaTeX 的中文处理技术近十年进步得非常快.[1]所以,在网上抄代码很容易抄到过时的代码. 网上的代码适用范

Fedora21安装TexLive2015及Texstudio

TexLive2015的安装及注意点 参考文章[1].[2].[3],在Fedora21下安装TexLive2015并进行中文配置.不过由于环境及版本的不同,安装过程稍有差异,差异总结如下: 中文字体设置 按照上述安装教程,将windows中的字体拷贝过来并安装后,需设置"/usr/local/texlive/2015/texmf-dist/tex/latex/ctex/fontset"下的"ctex-xecjk-winfonts.def" 文件,将其中的字体名称修

如何使用LaTeX让自己不乱?

虽然说LaTeX声称排版容易,只关注内容,可是混合着源代码的结构很难让我只关注内容,最后看得眼睛疼,找什么都找不到. 匿名用户 30 人赞同 立即想到的几个建议: 选择有折叠功能 (folding) 的编辑软件,把无关内容隐藏.大项目分多个文件,主文件只管结构,各章节内容及复杂作图分别另立文件,由 input 和 include 导入. 网上下载或问别人借的模版不要直接用.见过手动加粗居中来做章节标题的,见过希腊字母用英文字母 define 的,把 LaTeX 当 Word 用,不乱才怪. 养成

sublime下编辑LaTeX

sublime下编辑LaTeX LaTeX(LATEX,音译"拉泰赫")是一种基于ΤΕΧ的排版系统,由美国计算机学家莱斯利·兰伯特(Leslie Lamport)在20世纪80年代初期开发,利用这种格式,即使使用者没有排版和程序设计的知识也可以充分发挥由TeX所提供的强大功能,能在几天,甚至几小时内生成很多具有书籍质量的印刷品.对于生成复杂表格和数学公式,这一点表现得尤为突出.因此它非常适用于生成高印刷质量的科技和数学类文档.这个系统同样适用于生成从简单的信件到完整书籍的所有其他种类的

LaTeX自定义宏包与类文件默认搜索路径的设置方法

对于自定义的LaTeX宏包与类,在调用时可以通过在命令\documentclass{}与\usepackage{}命令中指定完整路径或者相对路径,这样确实可以调用,但是编译时总是有烦人的警告信息,让人不爽.还好有一个办法可以解决. 操作系统:Ubuntu 16.04 64位桌面版 LaTeX工具:TeXstudio 2.10.8 1.打开终端,输入以下命令 kpsewhich -var-value=TEXMFHOME 这个命令会查询到默认的宏包与类搜索路径,我的电脑上显示结果为:home/luw