Read math symbols from CSV

Today, I came to know about the new thing. Whenever I wanted (or tried) to print math symbol  (\leq, \sigma) through .CSV. It was giving an error. Because we can’t read LaTeX symbols directly from CSV. So, to read this, we will use \(math\) like this \(\leq\) in CSV to read any symbol.

Secondly, I did not know, how to define NULL values in the table using pgfplotstable? I was doing wrong. “I defined ‘nan’ for this, But it did not work”. If we want to define NULL values then leave it blank  and separated by commas.

JSON with LaTeX

Today, I used JSON data in LaTeX. To do this, Firstly, I load one file JSON.lua  in .tex file. When I did not download and load JSON.lua file in tex, it  was giving an error during compilation.  And when we are using JSON data inside .tex file then we use lualatex command to run latex code instead of pdflatex. 

Create Bootable Pendrive of window 7 in Ubuntu

Yesterday, I created bootable USB of window 7. Normally, we use Startup Disk Creator to make bootable Pendrive from Linux-iso in Ubuntu. But we can’t make bootable Pendrive of the window using startup disk creator in ubuntu. So, we need another software to do this. Yesterday, Amrit suggested me to use winusb  for this purpose. I wanted to search But he told me, My Bad Luck 😛 . Then I install winusb in ubuntu and make bootable Pendrive from window-iso.

Answer to june 9,2016

I got the reason behind the error described in june 9,2016. I had written comma separated values in LSDtable.csv file Which was placed in “input” folder. But there was another file of the same name as “LSDtable.csv” which was placed outside of “input” folder, whose values were not comma separated. So, whenever I run code, it was giving  an error of this wrong file. When I delete this wrong file. Then error removed :-).

June 9, 2016

Getting tired from error 😞. From 2 days, I am facing error ‘Package PGF Math Error: Could not parse input 0.765‘ in pgfplotstable. Normally, this error comes When our .csv file contain special characters such as date format and to remove this we use date plot package. But my file does not contain a special character.  Now I am unable to found its reason. To find the reason, I check package that was needed But everything was Ok. Then, I tried the same thing on another file and it works. But whenever I do same thing in a project file, But it gives error😞. Don’t know How solve this.

How I solved mount error (\mnt\8426CA2726CA1A56) occurred during booting

Today I solved error that I am facing from a month ago. Actually, whenever I start the laptop, it gave error during booting. An error  was :  An error occurred while mounting \mnt\8426CA2726CA1A56. But every time I ignore this using ‘S’ and continue booting. But Today, I solved that.

jk

The reason of this error is, When Ubuntu boots, it tries to automatically mount this partition but it does not work because Windows fast startup is enabled. So, to solve this error, disable ‘Mount at startup’ option of windows partition. Window is located at NTFS so uncheck  ‘Mount at startup’  option from that.

Steps to remove above error:

  1. Open disk in ubuntu.
  2. Open windows partition.
  3. Go to edit mount option of window partition.
  4. uncheck ‘Mount at startup’ option.
  5. Click Ok and restart your laptop.

Done 🙂

Working with .cls file in LaTeX

Normally, LaTeX provide predefined class to work like article, report, Book, elsarticle etc. But sometimes we need special features in our document, I can say when we need sudo power on document then we can create our own .cls file. .cls file provide code reusability. It means that whenever  you need similar feature in future projects. Then you just need to put name of your .cls that you have created earlier. Just do following to create and use own .cls file.

Firstly create .cls file and save it with any name for example: Dhiman_article.cls

Dhiman_article.cls

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{Dhiman_article}[2016/05/3 Dhiman custom class]
\LoadClass[a4paper,twocolumn]{article}

%put your code and formatting that you want to reuse.

Note : Must ensure that if you are creating your own .cls file then you don’t have a need to include article or any \documentclass explicitly in .tex file. You just load required main class in your custom .cls file.

Now use your custom .cls in your .tex file

article.tex
\documentclass{Dhiman_article}
\begin{document}

%%%%%% Content here%%%%%
\end{document}

Done.