# Problem with Exporting techreport, phdthesis, mastersthesis to HTML

**URL:** <https://discourse.jabref.org/t/problem-with-exporting-techreport-phdthesis-mastersthesis-to-html/2634>\
**Category:** Help\
**Created:** [March 26, 2021, 3:10pm UTC](https://discourse.jabref.org/t/problem-with-exporting-techreport-phdthesis-mastersthesis-to-html/2634 "2021-03-26T15:10:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cfevotte](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@cfevotte](https://discourse.jabref.org/u/cfevotte)\
**Post date:** [March 26, 2021, 3:10pm UTC](https://discourse.jabref.org/t/problem-with-exporting-techreport-phdthesis-mastersthesis-to-html/2634/1 "2021-03-26T15:10:54Z")

</div>

Hi, I have been having an issue since Jabref 5.0 with exporting some entrytypes (TechReport, PhDThesis, MastersThesis) to HTML. The “school” or “institution” fields appear twice in the generated html.

For instance, the BibTex entry

@TechReport{Lovelace1842,  
author = {A. Lovelace},  
institution = {arXiv},  
title = {Bernoulli numbers},  
year = {1842},  
}

is exported as

techreport (Lovelace1842)  
Lovelace, A.  
Bernoulli numbers  
arXiv, arXiv, 1842

(there **arXiv** appears twice)

Help anyone ?

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [March 26, 2021, 8:06pm UTC](https://discourse.jabref.org/t/problem-with-exporting-techreport-phdthesis-mastersthesis-to-html/2634/2 "2021-03-26T20:06:36Z")

</div>

Hi,

Thanks for your report. The problem is simply that the fields School and Institution are treated as alias fields, this means that you can put `school` in your export template and JabRef will take either the value school of the field value of institution of your entry.

And I noticed that we actually have both fields defined in the export html template. This explains your issue.

> **[JabRef/jabref](https://github.com/JabRef/jabref/tree/master/src/main/resources/resource/layout)**
>
> master/src/main/resources/resource/layout

Workaround:

1. Copy three simplehtml or whatever you use for export to a new folder  
2,Modfiy the last line of the simplehtml.layout , remove the `\begin{institution}\format[HTMLChars]{\institution}` from the template
2. Add a new custom export, point to the modified file simplehtml.layout

I create a fix for it

---

<div class="post-metadata">

**Author:** ![cfevotte](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@cfevotte](https://discourse.jabref.org/u/cfevotte)\
**Post date:** [March 29, 2021, 5:43pm UTC](https://discourse.jabref.org/t/problem-with-exporting-techreport-phdthesis-mastersthesis-to-html/2634/3 "2021-03-29T17:43:11Z")

</div>

Removing \format[HTMLChars]{\institution} or alternatively \format[HTMLChars]{\school} from my layout file (as a matter fact, tablerefsbibselect.layout) did work. Thank you for your help!
