python-tabulate icon indicating copy to clipboard operation
python-tabulate copied to clipboard

String backslash gets converted into \textbackslash{}

Open AdityaMayukhSom opened this issue 1 year ago • 1 comments

I am trying to create a latex table which will be directly used in another tex file. I am trying to use the makecell package to break the table headings into multiple lines, but whenever I am trying to print '' in the generates string, it is getting converted into \textbackslash{}. I understand that this might be the desired behaviour in most of the cases, but in case I want to literally print the '', what can I do apart from manually using regex matching to replace the generated text?

Also, it would be really helpful to have the ability to break long table headings natively in latex too. In psql table format, I can split and join with '\n' but this does not work with latex tables.

  1. Code to generate table headings image
  2. Generated Latex Code image
  3. Desired Output image

AdityaMayukhSom avatar Oct 17 '24 07:10 AdityaMayukhSom