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

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

  1. TeXstudio 编写Latex论文的若干问题

    TeXstudio 编写Latex论文的若干问题解决方案总结       问题1: 如何安装TeXstudio 以及 Texstudio当中的中文字体使用问题.   一.如何安装TeXstudio 很 ...

  2. 在Visual Studio 2012 Blue theme下使用Dark theme的文本编辑器颜色设置

    Visual Studio 2012 默认提供了3种color theme: blue,light,和dark.其中dark的文本编辑器颜色设定很爽,可是整个菜单项加上一些小的窗口如Find Resu ...

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

  4. chrome & dark theme

    chrome & dark theme Dark Reader Extensions https://darkreader.org/help/en/ https://chrome.google ...

  5. Chrome Extension & Dark Theme

    Chrome Extension & Dark Theme https://chrome.google.com/webstore/detail/eimadpbcbfnmbkopoojfekhn ...

  6. CTEX - 在线文档 - TeX/LaTeX 常用宏包

    CTEX - 在线文档 - TeX/LaTeX 常用宏包       页面与章节标题式样   浮动对象及标题设计   生成与插入图形   表格与列表   目录与索引   参考文献   数学与化学公式 ...

  7. Texstudio、Latex 大段注释,多行注释 快捷键

    Texstudio.Latex 大段注释,多行注释  快捷键 单行注释:在每行前加 %  即可 大段注释: \usepackage{verbatim} \begin{comment} ... \end ...

  8. MathJax TeX & LaTeX

    MathJax TeX & LaTeX mathcal https://leetcode-cn.com/problems/binary-search/solution/er-fen-cha-z ...

  9. 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/ ...

随机推荐

  1. BZOJ3514: Codechef MARCH14 GERALD07加强版【LCT】【主席树】【思维】

    Description N个点M条边的无向图,询问保留图中编号在[l,r]的边的时候图中的联通块个数. Input 第一行四个整数N.M.K.type,代表点数.边数.询问数以及询问是否加密. 接下来 ...

  2. bool dfs 解决单一解问题的优越性

    dfs的返回值类型可以是int 或者 void  .bool 由void 与 int 作为返回值类型的dfs在得到解之后不能立即返回,即使你加上语句if(key)return;也要在得到解之后一点点返 ...

  3. 《DSP using MATLAB》Problem 3.21

    模拟信号经过不同的采样率进行采样后,得到不同的数字角频率,如下: 三种Fs,采样后的信号的谱 重建模拟信号,这里只显示由第1种Fs=0.01采样后序列进行重建,采用zoh.foh和spline三种方法 ...

  4. sql serve 创建序列

    Oracle中有sequence的功能,SQL Server类似的功能使用Identity列实现,但是有很大的局限性. 在2012中,微软终于增加了 sequence 对象,功能和性能都有了很大的提高 ...

  5. c2java Greedy 之任务调度

    近期调试一个javaproject的时候,我遇到不是期望的输出结果时.是这么干的: A1凝视掉抛出的异常: A2加打印对照异常输入和正常输入. A3进一步加打印缩小范围. 事实上仅仅需:B1静下心来细 ...

  6. 基于 FastAdmin 开发后台流程 (持续更新)

    使用 git init 初始化 增加一个自己的git 原始仓库,用于存放自己的代码. 增加一个 fastadmin 的仓库,为了方便以后与官方同步. 自己修改的代码 git Push 到自己的仓库 将 ...

  7. RabbitMQ之监控

    RabbitMQ作为一个工业级的消息中间件,肯定是缺少不了监控的,RabbitMQ提供了WEB版的页面监控(访问地址:http://xxx.xxx.xxx.xxx:15672/,默认端口号是15672 ...

  8. JUC集合之 JUC中的集合类

    Java集合包 在"Java 集合系列01之 总体框架"中,介绍java集合的架构.主体内容包括Collection集合和Map类:而Collection集合又可以划分为List( ...

  9. Tomcat 去除项目名称

    再tomcat的conf下server.xml  里, 再<host>...</host>的标签之间添加 <Context path="" docBa ...

  10. Microsoft Dynamics CRM 4.0 如何添加自定义按钮

    一.通过导入导出ISV.Config(ISV配置),具体如下图: 先设置—>打开导出自定义项—>选择ISV配置—>选择导出所选自定义项 点击确定 保存到桌面,解压,用VS打开cust ...