catalysts Preparation of Chloromethylated Pitch–Based Hyper–Crosslinked Polymers and An Immobilized Acidic Ionic Liquid as A Catalyst for the Synthesis of Biodiesel

: Hyper-crosslinking polymers and its immobilized acid ionic liquid catalyst were prepared using cheap pitch, as a monomer, through hyper-crosslinking reactions and allyl chloride, as a chlorine source, for chloromethylation and further grafting with imidazole and functionalizing with sulfonic acid. The polymers were characterized by FE-SEM, FTIR, TG, and nitrogen sorption. The grafting ratios of the chloromethylated pitch-based hyper-crosslinked polymer (HCP pitch –CH 2 –Cl) and immobilized acid ionic liquid [HCP pitch –Im–Pros][Tos] were 3.5 mmol / g and 3.0 mmol / g, and the BET speciﬁc surface areas were 520 m 2 / g and 380 m 2 / g, respectively. This strategy provides an easy approach to preparing highly stable and acid functionalized mesoporous catalysts. The immobilized acidic ionic liquid was used as a catalyst for the esteriﬁcation of oleic acid and methanol to synthesize biodiesel. The results demonstrated that under the optimal conditions of an alcohol to acid molar ratio of 7:1, ionic liquid to oleic acid molar ratio of 0.12, and a reaction time of 3 h at atmospheric pressure, the yield of methyl oleate can reach up to 93%. Moreover, the catalyst was reused ﬁve times without the yield decreasing signiﬁcantly. This study shows that [HCP pitch –Im–Pros][Tos] is a robust catalyst for the synthesis of biodiesel. improves the catalytic e ﬀ ect. The results show that it is a robust catalyst for synthesis of biodiesel.


Introduction
Due to the ongoing depletion of fossil fuel resources and serious environmental pollution, it is crucial to find a clean and renewable energy source [1,2]. As an alternative fuel for petrochemical diesel, biodiesel has been widely considered by domestic and foreign scholars because of its renewable and environmentally friendly advantages [3,4]. This so-called biodiesel is a general term for fatty acid methyl ester compounds which are mostly prepared by transesterification and esterification. However, conventional catalysts, such as concentrated sulfuric acid and NaOH, have serious corrosion consequences for equipment, require higher acid values for raw materials, and are difficult to separate and recover. Therefore, there is an urgent need to research and develop economical and adaptable catalyst [5].

Characterization of HCPpitch-CH2-Cl and [HCPpitch-Im-Pros][Tos]
The FE-SEM images and the element mapping of the HCPpitch, HCPpitch-CH2-Cl, and [HCPpitch-Im-Pros][Tos] are shown in Figure 2. It can be seen from Figure 2a,e,i that the as-prepared chloromethylated hyper-crosslinked polymer and the supported ionic liquid were amorphous porous structures, which was consistent with the subsequent specific surface analysis results. Comparing the results of Figure 2b,f,j, it can be concluded that the density of chlorine in HCPpitch-CH2-Cl was significantly higher than that of HCPpitch-HCP, indicating that the chloromethyl group had been grafted successfully. Moreover, the density of chlorine in [HCPpitch-Im-Pros][Tos] was significantly reduced, indicating that chlorine was largely replaced and that chloromethyl and imidazolidine were alkylated. As shown in Figure 2c,g, both HCPpitch and HCPpitch-CH2-Cl contained a small amount of N which may have come from the original pitch material. Interestingly, the nitrogen element in [HCPpitch-Im-Pros][Tos] ( Figure 2k) increased significantly, indicating that the imidazole group had been grafted successfully. Moreover, as can be seen from Figure 2d, HCPpitch contained a lot of sulfur which may have also come from the original pitch material. While sulfur in HCPpitch-CH2-Cl (Figure 2h) was further increased, the reason may be that the sulfuric acid catalyst used in the chloromethylation process caused a small amount of sulfonation on the surface of the carrier. Also, the sulfur element in [HCPpitch-Im-Pros][Tos] ( Figure  2i) was further increased, indicating that the carrier had been successfully attached to the sulfonic acid group, confirming that the immobilized ionic liquid had been successfully prepared.

Characterization of HCP pitch -CH 2 -Cl and [HCP pitch -Im-Pros][Tos]
The FE-SEM images and the element mapping of the HCP pitch , HCP pitch -CH 2 -Cl, and [HCP pitch -Im-Pros][Tos] are shown in Figure 2. It can be seen from Figure 2a,e,i that the as-prepared chloromethylated hyper-crosslinked polymer and the supported ionic liquid were amorphous porous structures, which was consistent with the subsequent specific surface analysis results. Comparing the results of Figure 2b,f,j, it can be concluded that the density of chlorine in HCP pitch -CH 2 -Cl was significantly higher than that of HCP pitch -HCP, indicating that the chloromethyl group had been grafted successfully. Moreover, the density of chlorine in [HCP pitch -Im-Pros][Tos] was significantly reduced, indicating that chlorine was largely replaced and that chloromethyl and imidazolidine were alkylated. As shown in Figure 2c,g, both HCP pitch and HCP pitch -CH 2 -Cl contained a small amount of N which may have come from the original pitch material. Interestingly, the nitrogen element in [HCP pitch -Im-Pros][Tos] (Figure 2k) increased significantly, indicating that the imidazole group had been grafted successfully. Moreover, as can be seen from Figure 2d, HCP pitch contained a lot of sulfur which may have also come from the original pitch material. While sulfur in HCP pitch -CH 2 -Cl ( Figure 2h) was further increased, the reason may be that the sulfuric acid catalyst used in the chloromethylation process caused a small amount of sulfonation on the surface of the carrier. Also, the sulfur element in [HCP pitch -Im-Pros][Tos] (Figure 2i) was further increased, indicating that the carrier had been successfully attached to the sulfonic acid group, confirming that the immobilized ionic liquid had been successfully prepared. In order to further calculate the true content of the immobilized ionic liquid on the catalyst, an elemental analyzer was used to analyze the content of nitrogen and sulfur in the hyper-crosslinking polymer carrier, the chloromethylated carrier, and the immobilized ionic liquid; the results are shown in Table 1. The nitrogen contents in HCPpitch, HCPpitch-CH2-Cl, and [HCPpitch-Im-Pros][Tos] were 0.21%, 0.17%, and 4.89%, respectively, while the sulfur contents were 2.21%, 3.70%, and 11.6%, respectively. Not surprisingly, the results were consistent with the elemental mapping in Figure 2. Based on the calculation method for nitrogen content, the grafting ratio of the ionic liquid was calculated to be 3.0 mmol/g. To further confirm the functional groups on the surface of the carrier, the FTIR spectra of HCPpitch and HCPpitch-CH2-Cl were performed in Figure 3a. For HCPpitch, the weak C-H stretching absorption of aromatic rings at 3040 cm −1 in HCPpitch-CH2-Cl was absent, while the characteristic peak of C-Cl stretching at 620 cm −1 region was visible. These results confirm that the aromatic hydrogen atoms were substituted by allyl chloride.
The FTIR spectra of HCPpitch-Im-Pros, [HCPpitch-Im-Pros][Tos], and Tos are shown in Figure 3b. It was found that the characteristic absorption bands of the sulfonic acid group at 1200 cm −1 , 1040 cm −1 , and 801 cm −1 were due to the asymmetrical and symmetrical stretching vibrations of S-O [13]. A weak peak at 1358 cm −1 can be assigned to the C-N-C stretching vibration showing the presence of an imidazole ring in the HCPpitch-Im-Pros [20]. Moreover, a broad and a strong band ranging from 3100 to 3500 cm −1 in [HCPpitch-Im-Pros][Tos] may be associated with the -OH stretching vibration [21]. These results indicate that the target [HCPpitch-Im-Pros][Tos] catalyst was obtained through the preparation. In order to further calculate the true content of the immobilized ionic liquid on the catalyst, an elemental analyzer was used to analyze the content of nitrogen and sulfur in the hyper-crosslinking polymer carrier, the chloromethylated carrier, and the immobilized ionic liquid; the results are shown in Table 1. The nitrogen contents in HCP pitch , HCP pitch -CH 2 -Cl, and [HCP pitch -Im-Pros][Tos] were 0.21%, 0.17%, and 4.89%, respectively, while the sulfur contents were 2.21%, 3.70%, and 11.6%, respectively. Not surprisingly, the results were consistent with the elemental mapping in Figure 2. Based on the calculation method for nitrogen content, the grafting ratio of the ionic liquid was calculated to be 3.0 mmol/g. To further confirm the functional groups on the surface of the carrier, the FTIR spectra of HCP pitch and HCP pitch -CH 2 -Cl were performed in Figure 3a. For HCP pitch , the weak C-H stretching absorption of aromatic rings at 3040 cm −1 in HCP pitch -CH 2 -Cl was absent, while the characteristic peak of C-Cl stretching at 620 cm −1 region was visible. These results confirm that the aromatic hydrogen atoms were substituted by allyl chloride.
The FTIR spectra of HCP pitch -Im-Pros, [HCP pitch -Im-Pros][Tos], and Tos are shown in Figure 3b. It was found that the characteristic absorption bands of the sulfonic acid group at 1200 cm −1 , 1040 cm −1 , and 801 cm −1 were due to the asymmetrical and symmetrical stretching vibrations of S-O [13]. A weak peak at 1358 cm −1 can be assigned to the C-N-C stretching vibration showing the presence of an imidazole ring in the HCP pitch -Im-Pros [20]. Moreover, a broad and a strong band ranging from 3100 to 3500 cm −1 in [HCP pitch -Im-Pros][Tos] may be associated with the -OH stretching vibration [21]. These results indicate that the target [HCP pitch -Im-Pros][Tos] catalyst was obtained through the preparation. Further, to ensure the thermal stability of the catalyst, thermogravimetric analysis of the immobilized acidic ionic liquid was conducted, as shown in Figure 4. The [HCPpitch-Im-Pros][Tos] exhibited good thermal stability and the thermal decomposition temperature was 235 °C. It should be noted that the framework of the catalyst carrier was prepared by Friedel-Crafts alkylation of aromatics in pitch. Therefore, the decomposition at 430 °C was mainly due to the decomposition of the framework of the catalyst carrier, namely, the decomposition of aromatics [22]. In this paper, the reaction temperature of oleic acid and methanol esterification to synthesize biodiesel was 70 °C. This indicates that the immobilized ionic liquid can maintain thermal stability in the esterification reaction.  Table 2, and the specific surface area of HCP was 1153 m 2 /g which was 530 m 2 /g after chloromethylation and further reduced to 380 m 2 /g after grafting with ionic liquid. This was mainly due to the fact that the pores were blocked by the grafting ionic liquid [23]. Further, to ensure the thermal stability of the catalyst, thermogravimetric analysis of the immobilized acidic ionic liquid was conducted, as shown in Figure 4. The [HCP pitch -Im-Pros][Tos] exhibited good thermal stability and the thermal decomposition temperature was 235 • C. It should be noted that the framework of the catalyst carrier was prepared by Friedel-Crafts alkylation of aromatics in pitch. Therefore, the decomposition at 430 • C was mainly due to the decomposition of the framework of the catalyst carrier, namely, the decomposition of aromatics [22]. In this paper, the reaction temperature of oleic acid and methanol esterification to synthesize biodiesel was 70 • C. This indicates that the immobilized ionic liquid can maintain thermal stability in the esterification reaction. Further, to ensure the thermal stability of the catalyst, thermogravimetric analysis of the immobilized acidic ionic liquid was conducted, as shown in Figure 4. The [HCPpitch-Im-Pros][Tos] exhibited good thermal stability and the thermal decomposition temperature was 235 °C. It should be noted that the framework of the catalyst carrier was prepared by Friedel-Crafts alkylation of aromatics in pitch. Therefore, the decomposition at 430 °C was mainly due to the decomposition of the framework of the catalyst carrier, namely, the decomposition of aromatics [22]. In this paper, the reaction temperature of oleic acid and methanol esterification to synthesize biodiesel was 70 °C. This indicates that the immobilized ionic liquid can maintain thermal stability in the esterification reaction.  Table 2, and the specific surface area of HCP was 1153 m 2 /g which was 530 m 2 /g after chloromethylation and further reduced to 380 m 2 /g after grafting with ionic liquid. This was mainly due to the fact that the pores were blocked by the grafting ionic liquid [23]. Moreover, the isothermal N 2 adsorption-desorption test results for HCP pitch -CH 2 -Cl and [HCP pitch -Im-Pros][Tos] are shown in Figure 5. The results indicate that HCP pitch -CH 2 -Cl and [HCP pitch -Im-Pros][Tos] successfully contained micropores and mesopores and illustrate that the dominant pore size of HCP pitch -CH 2 -Cl and [HCP pitch -Im-Pros][Tos] was 6.02 nm and 2.56 nm, respectively. Similarly, the BET test results are shown in Table 2, and the specific surface area of HCP was 1153 m 2 /g which was 530 m 2 /g after chloromethylation and further reduced to 380 m 2 /g after grafting with ionic liquid. This was mainly due to the fact that the pores were blocked by the grafting ionic liquid [23].

Influence of Chloromethylation Parameters on Chlorine Content of HCPpitch-CH2-Cl
After the preparation of HCPpitch, it was then modified with chloromethylation. We used allyl chloride as the chlorine source and concentrated sulfuric acid as the catalyst which not only avoided the use of hydrochloric acid generators in the traditional chloromethylation [24,25] but also obtained a higher chlorine content. The effects of adding the catalyst and allyl chloride and the reaction temperature and reaction time on the changes of the specific surface area and the chlorine content of the carrier were also investigated. All these results are shown in Figure 6.
As shown in Figure 6a, the chlorine content in HCPpitch-CH2-Cl gradually increased as the amount of catalyst increased, indicating that the grafting amount of the chloromethyl group gradually increased. However, when the amount of the catalyst exceeded a certain ratio, the chlorine content decreased which was due to the excess concentrated sulfuric acid causing more sulfonation reaction of the benzene ring on the carrier, and the sulfonic acid group occupied the position on the benzene ring so as to make the benzene ring passivated, resulting in a lower amount of chloromethylation [19]. The specific surface area of the prepared HCPpitch-CH2-Cl decreased with the increasing amount of the catalyst, because the grafted chloromethyl group occupied more and more pores as the graft amount increased. When the amount of the catalyst exceeded a certain ratio, although the grafting amount of the chloromethyl group decreased, the sulfonic acid group attached on the benzene ring through the continuously increasing sulfonation, and the pores were also occupied to further reduce the specific surface area.
Moreover, it can be seen from Figure 6b that as the amount of allyl chloride increased, the chlorine content in HCPpitch-CH2-Cl increased sharply, indicating that the grafting amount of the chloromethyl groups increased rapidly. However, when the amount of allyl chloride exceeded a certain ratio, the chlorine content decreased because of an excess of allyl chloride which diluted the catalyst concentration, resulting in a smaller amount of chloromethylation. Also, the specific surface

Influence of Chloromethylation Parameters on Chlorine Content of HCP pitch -CH 2 -Cl
After the preparation of HCP pitch , it was then modified with chloromethylation. We used allyl chloride as the chlorine source and concentrated sulfuric acid as the catalyst which not only avoided the use of hydrochloric acid generators in the traditional chloromethylation [24,25] but also obtained a higher chlorine content. The effects of adding the catalyst and allyl chloride and the reaction temperature and reaction time on the changes of the specific surface area and the chlorine content of the carrier were also investigated. All these results are shown in Figure 6.
As shown in Figure 6a, the chlorine content in HCP pitch -CH 2 -Cl gradually increased as the amount of catalyst increased, indicating that the grafting amount of the chloromethyl group gradually increased. However, when the amount of the catalyst exceeded a certain ratio, the chlorine content decreased which was due to the excess concentrated sulfuric acid causing more sulfonation reaction of the benzene ring on the carrier, and the sulfonic acid group occupied the position on the benzene ring so as to make the benzene ring passivated, resulting in a lower amount of chloromethylation [19]. The specific surface area of the prepared HCP pitch -CH 2 -Cl decreased with the increasing amount of the catalyst, because the grafted chloromethyl group occupied more and more pores as the graft amount increased. When the amount of the catalyst exceeded a certain ratio, although the grafting amount of the chloromethyl group decreased, the sulfonic acid group attached on the benzene ring through the continuously increasing sulfonation, and the pores were also occupied to further reduce the specific surface area.
Moreover, it can be seen from Figure 6b that as the amount of allyl chloride increased, the chlorine content in HCP pitch -CH 2 -Cl increased sharply, indicating that the grafting amount of the chloromethyl groups increased rapidly. However, when the amount of allyl chloride exceeded a certain ratio, the chlorine content decreased because of an excess of allyl chloride which diluted the catalyst concentration, resulting in a smaller amount of chloromethylation. Also, the specific surface area of the prepared HCP pitch -CH 2 -Cl decreased with the increasing amount of allyl chloride; the reason for this phenomenon is that, in addition to the grafted chloromethyl group occupying the pores, the number of deposits formed from the carbonization of allyl chloride by concentrated sulfuric acid continuously increased, resulting in a further decrease in the specific surface area.
Furthermore, the results in Figure 6c show that the chlorine content in HCP pitch -CH 2 -Cl increased slowly with increasing temperature, indicating a slow increase in the grafting amount of chloromethyl groups. But, when the temperature was higher than 50 • C, there was some decrease in the chlorine content because the chloromethylation was an exothermic reaction, resulting in a smaller amount of chloromethylation. The specific surface area of the prepared HCP pitch -CH 2 -Cl decreased with the increasing temperature because of the grafted chloromethyl group occupying the pores, and the amount of the deposit formed from the carbonization of allyl chloride by concentrated sulfuric acid drastically increased at a higher temperature, resulting in a further reduction in specific surface area. Moreover, Figure 6d shows that the chlorine content in HCP pitch -CH 2 -Cl increased with the increasing reaction time. When the reaction time exceeded 24 h, the chlorine content remained basically unchanged, indicating that the chloromethylation reaction had reached equilibrium. However, the specific surface area of the prepared HCP pitch -CH 2 -Cl continued to decrease after the reaction time exceeding 24 h, which was because the amount of the deposit formed from allyl chloride carbonization by concentrated sulfuric acid was gradually increasing.
Collectively, under the optimum conditions, the mass ratio of HCP pitch to propylene chloride was 1:5, the volume ratio of concentrated sulfuric acid to propylene chloride was 1:10, the reaction temperature was 50 • C, and the reaction time was 24 h; the HCP pitch -CH 2 -Cl was successfully prepared with approximately 3.5 mmol/g of chlorine content which was much higher than the traditional methods. area of the prepared HCPpitch-CH2-Cl decreased with the increasing amount of allyl chloride; the reason for this phenomenon is that, in addition to the grafted chloromethyl group occupying the pores, the number of deposits formed from the carbonization of allyl chloride by concentrated sulfuric acid continuously increased, resulting in a further decrease in the specific surface area. Furthermore, the results in Figure 6c show that the chlorine content in HCPpitch-CH2-Cl increased slowly with increasing temperature, indicating a slow increase in the grafting amount of chloromethyl groups. But, when the temperature was higher than 50 °C, there was some decrease in the chlorine content because the chloromethylation was an exothermic reaction, resulting in a smaller amount of chloromethylation. The specific surface area of the prepared HCPpitch-CH2-Cl decreased with the increasing temperature because of the grafted chloromethyl group occupying the pores, and the amount of the deposit formed from the carbonization of allyl chloride by concentrated sulfuric acid drastically increased at a higher temperature, resulting in a further reduction in specific surface area. Moreover, Figure 6d shows that the chlorine content in HCPpitch-CH2-Cl increased with the increasing reaction time. When the reaction time exceeded 24 h, the chlorine content remained basically unchanged, indicating that the chloromethylation reaction had reached equilibrium. However, the specific surface area of the prepared HCPpitch-CH2-Cl continued to decrease after the reaction time exceeding 24 h, which was because the amount of the deposit formed from allyl chloride carbonization by concentrated sulfuric acid was gradually increasing.
Collectively, under the optimum conditions, the mass ratio of HCPpitch to propylene chloride was 1:5, the volume ratio of concentrated sulfuric acid to propylene chloride was 1:10, the reaction temperature was 50 °C, and the reaction time was 24 h; the HCPpitch-CH2-Cl was successfully prepared with approximately 3.5 mmol/g of chlorine content which was much higher than the traditional methods.

Influence of Esterification Parameters on the Biodiesel Yield and Reusability of the Catalyst
The as-prepared immobilized ionic liquid catalyst ([HCP pitch -Im-Pros][Tos]) was used for the esterification of oleic acid and methanol to produce biodiesel, and the influence of the reaction time, the molar ratio of methanol and catalyst to oleic acid, and the reuse of the catalyst on the yield of biodiesel were investigated. The results are shown in Figure 7.
The effect of the reaction time on the yield of biodiesel is shown in Figure 7a. It was found that with the increase in reaction time, the yield of biodiesel increased initially; when the time reached 3 h, the yield rapidly increased to 90.8%. A further increase in the reaction time did not improve the yield of the biodiesel significantly; it might be limited by the chemical equilibrium of the reaction. Hence, the optimal reaction time was 3 h in this procedure. The results demonstrate that [HCP pitch -Im-Pros][Tos] is a robust catalyst for the esterification of oleic acid and methanol to synthesize biodiesel under atmospheric pressure within a short reaction time of less than 3 h at 70 • C.
As can be seen from Figure 7b, the yield of biodiesel increased with the molar ratio of methanol to oleic acid. This may be related to the chemical equilibrium of the esterification reaction. The result illustrates that the optimal molar ratio of methanol to oleic acid in this heterogeneous reaction was greater than that in the homogeneous reaction with acid ionic liquid as the catalyst which might be that it was a heterogeneous reaction. However, it is interesting to note that the yield of biodiesel did not decrease with a further increase in the molar ratio of methanol to oleic acid, which was different from that in the homogeneous reaction system where the yield decreased when the molar ratio of methanol to oleic acid was greater than a certain value [26]. This means that excess methanol does not reduce the concentration of the catalyst in such a heterogeneous reaction system. The effect of the molar ratio of catalyst to oleic acid on the yield of biodiesel is shown in Figure 7c. Despite the fact that the yield of biodiesel was enhanced with the molar ratio of catalyst to oleic acid increasing from 0.04 to 0.12, the yield of biodiesel did not increase when the amount of catalyst was further increased. It is worth noting that, when the molar ratio of catalyst to oleic acid increased, the reaction time did not increase anymore and which may have decreased due to the increase in viscosity.
To further investigate the reuse effect of the catalyst, the catalyst was first separated by filtration and washed with alcohol and water before the next run of the catalyst. As shown in Figure 7d, the catalyst was easily reused at least five times without significant loss in the product yield, indicating that [HCP pitch -Im-Pros][Tos] could be separated easily and still maintain catalytic activity, indicating that [HCP pitch -Im-Pros][Tos] can be a good catalyst in the esterification reaction of oleic acid and methanol to produce biodiesel.
Compared with other methods of preparing biodiesel (methyl oleate), the catalyst in this method was prepared from cheap and easily available pitch, and the prepared catalyst had a higher specific surface area and higher graft ratio of acidic ionic liquid which can not only shorten the reaction time but also reduce the production cost.

Preparation of Catalysis
The HCPpitch was synthesized using the method shown in Figure 1a

Preparation of Catalysis
The HCP pitch was synthesized using the method shown in Figure 1a. It was functionalized by allyl chloride to obtain a super crosslinked porous polymer (HCP pitch -CH 2 -Cl) containing chloromethyl groups on the surface. The immobilized acid ionic liquid catalyst [HCP pitch -Im-Pros][Tos] was obtained by grafting the sulfonate ionic liquid with the HCP pitch -CH 2 -Cl as a carrier, as shown in Figure 1b.

Preparation of HCP pitch
The HCP pitch was prepared according to a previously described method [27]. Notably, under a nitrogen atmosphere, petroleum pitch (2.0 g) was added into 50 mL DEC in a round-bottomed flask. The FDA (0.06 mol, 4.566 g) was added and then stirred for 20 min. The FeCl 3 (0.06 mol, 9.732 g) was added to the round-bottomed flask. Then the reaction proceeded at 50 • C for 10 h and then at 80 • C for 14 h. After the reaction, the reaction mixture was poured into 150 mL ethanol in a beaker and cooled down to room temperature, and the solid product was washed with methyl alcohol and treated with vacuum filtering three times. The final product was dried in a vacuum at 80 • C for 24 h.

Preparation of HCP pitch -CH 2 -Cl
The HCP pitch (1.5 g), allyl chloride (0.098 mol, 7.5 g), and 98% H 2 SO 4 (2.25 g) were added into 50 mL DEC in a round-bottomed flask consecutively. The resulting mixture was heated at 45 • C for 12 h. After cooling to room temperature, the solid product was washed with methanol three times and treated with vacuum filtering. Finally, the obtained powder was dried in a vacuum at 70 • C for 12 h. The functionalized material of HCP pitch -CH 2 -Cl was obtained as a dark brown solid.

Preparation of [HCP pitch -Im-Pros][Tos]
The HCP pitch -CH 2 -Cl (3.0 g) as a substrate was added into 80 mL acetonitrile in a round-bottomed flask and then imidazole (0.017 mol) was added to the mixture and then stirred for 20 min. A certain amount of NaH (0.018 mol) was added to the round-bottomed flask. Then the reaction proceeded at 80 • C for 48 h. The formation of white precipitate was detected by acidifying silver nitrate solution. After cooling to room temperature, the product was washed with methanol three times and treated with vacuum filtering; thus, the HCP pitch -CH 2 -Im was prepared.
The prepared HCP pitch -CH 2 -Im and the 1,3-propanesultone (0.018 mol) were added into a round-bottomed flask, then 50 mL acetonitrile was added as a solvent. After the reaction proceeded for 48 h at 80 • C, the product was filtered and washed three times with methyl alcohol, and the brown solid HCP pitch -Im-Pros was obtained. After filtering to a constant pressure, the brown solid and 1,3-p-toluenesulfonic acid (0.02 mol) were added into 50 mL acetonitrile in a round-bottomed flask; the reaction was allowed to proceed at 80 • C for 24 h and the obtained precipitate was washed three times with methyl alcohol and further purified using Soxhlet extractor with ethyl acetate as an extraction reagent for 24 h. Finally, [HCP pitch -Im-Pros][Tos] was prepared.

Determination of Grafting Ratio of Chloromethyl
The HCP pitch -CH 2 -Cl (1.0 g) was added into 30 mL acetonitrile in a round-bottomed flask and then imidazole (0.01 mol) was added to the mixture and stirred for 20 min. The NaH (0.012 mol) was added to the round-bottomed flask. Then, the reaction proceeded at 80 • C for 48 h. After the reaction of HCP pitch -CH 2 -Cl with imidazole, the filtrate obtained was moved into a conical flask with 5 mL distilled water. The mixture was stirred rapidly at room temperature and the pH value was adjusted to less than 8 in a cone bottle using the diluted nitric acid. Then, silver nitrate standard solution (C AgNO3 = 0.1000 mol/L), as a titrant, and potassium dichromate solution (5 wt%), as an indicator, were used to titrate the mentioned mixture solution. When the indicator was discolored, the volume of AgNO 3 consumed was recorded as V. The grafting ratio of chloromethyl in HCP pitch -CH 2 -Cl was able to be determined using this method.

Characterization
Infrared spectra were recorded on a Fourier transform infrared spectroscopy (FTIR) spectrometer (Thermo Scientific Nicolet410, Thermo Electron Instruments Co., Shanghai, China). To observe the surface morphology, energy-dispersive X-ray spectroscopy (EDS, OXFORD 51-XMX, Oxford, UK) assisted field-emission scanning electron microscopy (FE-SEM, HITACHI S-4800, Tokyo, Japan) was used, and the thermogravimetric analysis (TGA) of the materials was conducted on a TA Instruments Q50 (US) thermal analyzer at a heating rate of 5 • C/min in air. Nitrogen adsorption-desorption isotherms were recorded using Micrometric (ASAP 2020 apparatus, Norcross, GA, USA).

Preparation of Biodiesel
The oleic acid, methanol, and [HCP pitch -Im-Pros][Tos] were added to a 50 mL flask with a reflux condenser and a magnetic stir bar. The mixture was heated rapidly to the desired temperature in an oil bath to synthesize biodiesel (Figure 8). When the reaction finished, the mixture was cooled at room temperature. Finally, the solid catalyst was filtered from the solution, and the filtrate was moved into a volumetric flask and diluted with ethanol to 100 mL. Experiments were carried out to optimize the variables for the esterification process, such as the molar ratio of methanol to oleic acid, the molar ratio of catalyst to oleic acid, reaction time, and reaction temperature. adsorption-desorption isotherms were recorded using Micrometric (ASAP 2020 apparatus, Norcross, GA, USA).

Preparation of Biodiesel
The oleic acid, methanol, and [HCPpitch-Im-Pros][Tos] were added to a 50 mL flask with a reflux condenser and a magnetic stir bar. The mixture was heated rapidly to the desired temperature in an oil bath to synthesize biodiesel (Figure 8). When the reaction finished, the mixture was cooled at room temperature. Finally, the solid catalyst was filtered from the solution, and the filtrate was moved into a volumetric flask and diluted with ethanol to 100 mL. Experiments were carried out to optimize the variables for the esterification process, such as the molar ratio of methanol to oleic acid, the molar ratio of catalyst to oleic acid, reaction time, and reaction temperature.

GC Analysis and Biodiesel Yield
The products of the methyl ester contents in the reaction mixture were quantified by a GC-7890B gas chromatograph (Agilent, Santa Clara, CA, US) using a HP-INNOWAX capillary column (60 m × 0.320 mm i.d.; film thickness 0.25 μm) connected to a flame ionization detector (FID). The oven temperature was kept at 130 °C for 1 min, raised to 160 °C at 10 °C/min, maintained at this temperature for 1 min, elevated to 210 °C at 20 °C/min, and then increased to 250 °C at 10 °C/min and held for 11.5 min. The temperatures of the injector and detector were set at 280 °C. The split ratio was 40:1, and pure nitrogen was used as a carrier gas. The concentration of methyl oleate in the samples was analyzed by an external standard method, and each sample was analyzed three times. The biodiesel yield can be calculated with the concentration of methyl oleate in the sample.

Conclusions
Hyper-crosslinking polymers and their immobilized acid ionic liquid catalyst were successfully prepared using cheap pitch, as a monomer, through hyper-crosslinking reactions and allyl chloride, as a chlorine source, for chloromethylation and further grafting with imidazole and functionalizing with sulfonic acid. The results showed that the grafting ratios of hyper-crosslinked polymer (HCPpitch-CH2-Cl) and immobilized acid ionic liquid [HCPpitch-Im-Pros][Tos] were 3.5 mmol/g and 3.0 mmol/g, and the BET specific surface areas were 520 m 2 /g and 380 m 2 /g, respectively. The immobilized acidic ionic liquid [HCPpitch-Im-Pros][Tos] was used as a catalyst for the esterification of oleic acid and methanol to synthesize biodiesel. The results demonstrate that, under the optimal conditions of a molar ratio of alcohol to acid at 7:1, a molar ratio of ionic liquid to oleic acid of 0.12, and a reaction time of 3 h, the yield of methyl oleate could reach up to 93%. Moreover, the catalyst was reused five times without any significantly decrease in the yield. All these results illustrate that [HCPpitch-Im-Pros][Tos] is a robust catalyst for the synthesis of biodiesel.
In summary, this work provides a new easy strategy to prepare high grafting ratio and acid functionalized mesoporous catalysts for synthesis of biodiesel. Meanwhile, the carrier prepared by the pitch has the advantages of being cheap and easy to obtain which can greatly reduce the cost of the immobilized ionic liquid and is beneficial to popularizing the preparation of the catalytic carrier of the immobilized ionic liquid and can be promoted and applied in related fields.
Author Contributions: B.P. and X.X. conceived and designed the experiments; B.P., C.Z. and T.L. implemented the experiments and wrote the paper; X.C. and R.Q. analyzed the data; B.P. and D.L. contributed to the revision and proofreading of the manuscript; writing -review & editing, J.L. and X.L. CH 3 (CH 2 ) 7 CH=CH(CH 2 ) 7 COOH + CH 3 OH CH 3 (CH 2 ) 7 CH=CH(CH 2 ) 7 COOCH 3 catalyst + H 2 O Figure 8. Synthesis of biodiesel through esterification of oleic acid with methanol using prepared catalyst.

GC Analysis and Biodiesel Yield
The products of the methyl ester contents in the reaction mixture were quantified by a GC-7890B gas chromatograph (Agilent, Santa Clara, CA, US) using a HP-INNOWAX capillary column (60 m × 0.320 mm i.d.; film thickness 0.25 µm) connected to a flame ionization detector (FID). The oven temperature was kept at 130 • C for 1 min, raised to 160 • C at 10 • C/min, maintained at this temperature for 1 min, elevated to 210 • C at 20 • C/min, and then increased to 250 • C at 10 • C/min and held for 11.5 min. The temperatures of the injector and detector were set at 280 • C. The split ratio was 40:1, and pure nitrogen was used as a carrier gas. The concentration of methyl oleate in the samples was analyzed by an external standard method, and each sample was analyzed three times. The biodiesel yield can be calculated with the concentration of methyl oleate in the sample.

Conclusions
Hyper-crosslinking polymers and their immobilized acid ionic liquid catalyst were successfully prepared using cheap pitch, as a monomer, through hyper-crosslinking reactions and allyl chloride, as a chlorine source, for chloromethylation and further grafting with imidazole and functionalizing with sulfonic acid. The results showed that the grafting ratios of hyper-crosslinked polymer (HCP pitch -CH 2 -Cl) and immobilized acid ionic liquid [HCP pitch -Im-Pros][Tos] were 3.5 mmol/g and 3.0 mmol/g, and the BET specific surface areas were 520 m 2 /g and 380 m 2 /g, respectively. The immobilized acidic ionic liquid [HCP pitch -Im-Pros][Tos] was used as a catalyst for the esterification of oleic acid and methanol to synthesize biodiesel. The results demonstrate that, under the optimal conditions of a molar ratio of alcohol to acid at 7:1, a molar ratio of ionic liquid to oleic acid of 0.12, and a reaction time of 3 h, the yield of methyl oleate could reach up to 93%. Moreover, the catalyst was reused five times without any significantly decrease in the yield. All these results illustrate that [HCP pitch -Im-Pros][Tos] is a robust catalyst for the synthesis of biodiesel.
In summary, this work provides a new easy strategy to prepare high grafting ratio and acid functionalized mesoporous catalysts for synthesis of biodiesel. Meanwhile, the carrier prepared by the pitch has the advantages of being cheap and easy to obtain which can greatly reduce the cost of the immobilized ionic liquid and is beneficial to popularizing the preparation of the catalytic carrier of the immobilized ionic liquid and can be promoted and applied in related fields.
Author Contributions: B.P. and X.X. conceived and designed the experiments; B.P., C.Z. and T.L. implemented the experiments and wrote the paper; X.C. and R.Q. analyzed the data; B.P. and D.L. contributed to the revision and proofreading of the manuscript; writing-review & editing, J.L. and X.L.