I want to share some Python packages here that I have been using for data processing, AND some tips for using Zotero and LaTeX.
How to deal with the X-ray emission spectra collected at MEC, SLAC?
I developed a Python program to process XES data and get IAD values efficiently.
📮 Learn IXE.
How to model a planet using the new SINGLE material?
I developed a one-layer model to generate a solid planetary sphere using the equation-of-state (EOS) parameters of any given material. Although simple, the model reproduces mass–radius relationships that agree well with results from previous studies.
⏰ The Python package is coming.
How to plot publication-quality integrated XRD patterns?
For users of PeakPo, the software developed by Dr. Shim, my scripts can be used to visualize its output and produce refined XRD patterns suitable for publication.
👉 XRD_Plot
If you want to sync your Zotero library but find Zotero’s official storage plans too expensive, there are more affordable alternatives. You can use Dropbox, Google Drive, or other cloud services to sync your Zotero data, provided your storage capacity is sufficient.
Personally, I use Jianguoyun (坚果云) to sync my Zotero library. It’s not free, but it’s much more affordable than Zotero’s paid storage options and works reliably for file syncing.
You can find detailed instructions for setting up a custom WebDAV connection in Zotero here:
👉 Zotero WebDAV setup guide
To generate a .bib file from Zotero for use with LaTeX, you’ll need to install the Better BibTeX plugin and perform a quick setup:
Install Better BibTeX for Zotero.
Restart Zotero after installation.
Set citation key preferences:
In Zotero, go to Edit → Preferences → Better BibTeX → Citation keys to customize how keys are generated (e.g., auth.lower+'_'+shorttitle(1,1).lower+'_'+year).
(Optional) Fields to omit from export (e.g., abstract, urldate, keywords, file)
Export your library or collection:
Right-click the desired collection or library.
Choose Export Library… → Better BibTeX (.bib).
How to work well with LaTeX/Overleaf?
Cross-referencing between two files in Overleaf
👉 go to manual
AGU supplementary templates:
The AGU LaTeX supplementary template contains errors that interfere with referencing supplementary information in the main text.
📩 Contact me if you need a clean version, or turn to AI for help.
How to clean pages?
Download pymergechanges.py
In the terminal, try python ../pyMergeChanges.py -a input.tex output.tex # python 3
The original .py can not deal with \add, \change, \remove.
📩 Contact me if you need an updated one, or turn to AI for help.
Problems in the reference:
Sometimes, even when the bibliography format is correct, reference errors still appear after compiling.
In such cases, try clearing the LaTeX cache and recompiling the document.
How to delete all the command-out contents?
👉 go to manual